Array2DExtensions Module
Fluent extension operations on 2D arrays.
Type extensions
Type extension | Description |
Full Usage:
this.base1 ()
Parameters:
unit
Returns: int
The base-index of the first dimension of the array.
Modifiers: inline |
|
Full Usage:
this.base1
Returns: int
The base-index of the first dimension of the array.
Modifiers: inline |
|
Full Usage:
this.base2 ()
Parameters:
unit
Returns: int
The base-index of the second dimension of the array.
Modifiers: inline |
|
Full Usage:
this.base2
Returns: int
The base-index of the second dimension of the array.
Modifiers: inline |
|
Full Usage:
this.copy ()
Parameters:
unit
Returns: 'T[,]
A copy of the input array.
Modifiers: inline |
|
Full Usage:
this.iter action
Parameters:
'T -> unit
-
A function to apply to each element of the array.
Modifiers: inline |
|
Full Usage:
this.iteri action
Parameters:
int -> int -> 'T -> unit
-
A function to apply to each element of the array with the indices available as an argument.
Modifiers: inline |
|
Full Usage:
this.length1 ()
Parameters:
unit
Returns: int
The length of the array in the first dimension.
Modifiers: inline |
|
Full Usage:
this.length1
Returns: int
The length of the array in the first dimension.
Modifiers: inline |
|
Full Usage:
this.length2 ()
Parameters:
unit
Returns: int
The length of the array in the second dimension.
Modifiers: inline |
|
Full Usage:
this.length2
Returns: int
The length of the array in the second dimension.
Modifiers: inline |
|
Full Usage:
this.map mapping
Parameters:
'T -> 'U
-
A function that is applied to transform each item of the input array.
Returns: 'U[,]
An array whose elements have been transformed by the given mapping.
Modifiers: inline Type parameters: 'U |
For non-zero-based arrays the basing on an input array will be propogated to the output array.
Extended Type:
|
Full Usage:
this.mapi mapping
Parameters:
int -> int -> 'T -> 'U
-
A function that is applied to transform each element of the array. The two integers
provide the index of the element.
Returns: 'U[,]
An array whose elements have been transformed by the given mapping.
Modifiers: inline Type parameters: 'U |
For non-zero-based arrays the basing on an input array will be propagated to the output array.
Extended Type:
|
Full Usage:
this.rebase ()
Parameters:
unit
Returns: 'T[,]
The zero-based output array.
Modifiers: inline |