@@ -16,7 +16,7 @@ type Matrix< 'Item, 'Row, 'Column > = private { Items: 'Item[,] } with
16
16
[<MethodImpl( MethodImplOptions.AggressiveInlining) >]
17
17
static member UnsafeCreate ( _row : 'm , _column : 'n , items : _ [,]) : Matrix < _ , 'm , 'n > =
18
18
{ Items = items }
19
- (*
19
+
20
20
interface System.Collections.Generic.IReadOnlyCollection< 'Item> with
21
21
member this.Count = this.Items.Length
22
22
member this.GetEnumerator () = this.Items.GetEnumerator()
@@ -27,7 +27,7 @@ type Matrix< 'Item, 'Row, 'Column > = private { Items: 'Item[,] } with
27
27
for j = 0 to ( items |> Array2D.length2) - 1 do
28
28
yield items.[ i, j]
29
29
}) .GetEnumerator()
30
- *)
30
+
31
31
32
32
[<Struct; StructuredFormatDisplayAttribute( " {Items}" ) >]
33
33
type Vector < 'Item , 'Length > = private { Items: 'Item [] } with
@@ -36,13 +36,13 @@ type Vector<'Item, 'Length> = private { Items: 'Item[] } with
36
36
[<MethodImpl( MethodImplOptions.AggressiveInlining) >]
37
37
static member UnsafeCreate ( _length : 'n , items : _ []) : Vector < _ , 'n > =
38
38
{ Items = items }
39
- (*
39
+
40
40
interface System.Collections.Generic.IReadOnlyList< 'Item> with
41
41
member this.Count = this.Items.Length
42
42
member this.Item with get i = this.Items.[ i]
43
43
member this.GetEnumerator () = this.Items.GetEnumerator()
44
44
member this.GetEnumerator () = ( this.Items :> seq<_>) .GetEnumerator()
45
- *)
45
+
46
46
47
47
module Vector =
48
48
[<MethodImpl( MethodImplOptions.AggressiveInlining) >]
0 commit comments