[Home] Module Microsoft.FSharp.MLLib.Array


1-dimensional (generic) arrays.

Values

ValueDescription
val append : 'a array -> 'a array -> 'a array
Build a new array that contains the elements of the first array followed by the elements of the second array
val blit : 'a array -> int -> 'a array -> int -> int -> unit
Read a range of elements from the first array and write them into the second.
val concat : 'a array list -> 'a array
Build a new array that contains the elements of each of the given list of arrays
val copy : 'a array -> 'a array
Build a new array that contains the elements of the given array
val create : int -> 'a -> 'a array
Create an array whose elements are all initially the given value
val create_matrix : int -> int -> 'a -> 'a array array
Create a jagged 2 dimensional array.
val exists : ('a -> bool) -> 'a array -> bool
Test if any element of the array satisfies the given predicate. If the elements are "i0...iN" then computes "p i0 or ... or p iN".
val fill : 'a array -> int -> int -> 'a -> unit
Fill a range of an array with the given element
val fold_left : ('a -> 'b -> 'a) -> 'a -> 'b array -> 'a
Apply a function to each element of the collection, threading an 'accumulator' argument through the computation. If the elements are "i0...iN" then computes "f (... (f s i0)...) iN"
val fold_right : ('a -> 'b -> 'b) -> 'a array -> 'b -> 'b
Apply a function to each element of the array, threading an 'accumulator' argument through the computation. If the elements are "i0...iN" then computes "f i0 (...(f iN s))".
val for_all : ('a -> bool) -> 'a array -> bool
Test if all elements of the array satisfy the given predicate. If the elements are "i0...iN" and "j0...jN" then computes "p i0 && ... && p iN".
val get : 'a array -> int -> 'a
Fetch an element from an array
val get_IEnumerator : 'a [] -> IEnumerator<'a>
Return an enumerator for performing imperative enumerations over the given array.
val init : int -> (int -> 'a) -> 'a array
Create an array by calling the given generator on each index
val iter : ('a -> unit) -> 'a array -> unit
Apply the given function to each element of the array.
val iteri : (int -> 'a -> unit) -> 'a array -> unit
Apply the given function to each element of the array. The integer passed to the function indicates the index of element.
val length : 'a array -> int
Return the length of an array
val make : int -> 'a -> 'a array
Create an array whose elements are all initially the given value
val make_matrix : int -> int -> 'a -> 'a array array
Create a jagged 2 dimensional array. Synonym for create.
val map : ('a -> 'b) -> 'a array -> 'b array
Build a new array whose elements are the results of applying the given function to each of the elements of the array.
val mapi : (int -> 'a -> 'b) -> 'a array -> 'b array
Build a new array whose elements are the results of applying the given function to each of the elements of the array. The integer index passed to the function indicates the index of element being transformed.
val of_ICollection : #ICollection<'a> -> 'a []
Build a new array from any type that supports the .NET ICollection interface
val of_IEnumerable : #IEnumerable<'a> -> 'a []
Build a new array from the given enumerable object
val of_list : 'a list -> 'a array
Build an array from the given list
val of_List : List<'a> -> 'a []
Build a new array for a .NET list object
val of_stream : 'a t -> 'a array
Build an array from the given lazy list
val set : 'a array -> int -> 'a -> unit
Set the value of an element in an array
val sort : ('a -> 'a -> int) -> 'a array -> unit
Sort the elements of an array, using the given comparison function as the order
val sub : 'a array -> int -> int -> 'a array
Build a new array that contains the given subrange specified by starting index and length.
val to_ICollection : 'a [] -> ICollection<'a>
Return a view of the array as a .NET collection
val to_IEnumerable : 'a [] -> IEnumerable<'a>
Return a view of the array as an enumerable object
val to_list : 'a array -> 'a list
Build a list from the given array
val to_List : 'a [] -> List<'a>
Build a new .NET list object for this array
val to_stream : 'a array -> 'a t
Build a lazy list from the given array
val zero_create : int -> 'a array
Create an array where the entries are initially the a "default" value. For .NET reference types this will be "null". For other types behaviour is undefined if you access an entry of the array before setting it.

Deprecated Values

ValueDescription
val foreach : 'a array -> ('a -> unit) -> unit

Deprecated: This member is deprecated. Use "x |> CollectionType.iter" instead.

Apply the given function to each element of the array.
val foreachi : 'a array -> (int -> 'a -> unit) -> unit

Deprecated: This member is deprecated. Use "CollectionType.iteri" instead.

Apply the given function to each element of the array. The integer passed to the function indicates the index of element.
val transform : 'a array -> ('a -> 'b) -> 'b array

Deprecated: This member is deprecated. Use "x |> CollectionType.map" instead.

Build a new array whose elements are the results of applying the given function to each of the elements of the array.
val transformi : 'a array -> (int -> 'a -> 'b) -> 'b array

Deprecated: This member is deprecated. Use "x |> CollectionType.map" instead.

Build a new array whose elements are the results of applying the given function to each of the elements of the array. The integer index passed to the function indicates the index of element being transformed.

See Also

Microsoft.FSharp.MLLib


Documentation for assembly mllib, version 1.1.10.1, generated using F# version 1.1.10.1