fsprojects/FSharpx.Collections


FlatList

Namespace: FSharpx.Collections.Experimental

Functions and values

Function or valueDescription
append arg1 arg2
Signature: FlatList<'T> -> FlatList<'T> -> FlatList<'T>
Type parameters: 'T

O(n). Creates a flatlist that contains the elements of one flatlist followed by the elements of another flatlist.

collect arg1 arg2
Signature: ('T -> FlatList<'T>) -> FlatList<'T> -> FlatList<'T>
Type parameters: 'T

O(n). Applies the supplied function to each element of a flatlist, concatenates the results, and returns the combined flatlist.

concat arg1
Signature: FlatList<'T []> -> FlatList<'T>
Type parameters: 'T

O(n). Creates a flatlist that contains the elements of each of the supplied sequence of flatlists.

empty
Signature: FlatList<'T>
Type parameters: 'T

O(1). Returns flatlist of no elements.

exists arg1 arg2
Signature: ('T -> bool) -> FlatList<'T> -> bool
Type parameters: 'T

O(n) worst case. Tests whether any element of a flatlist satisfies the supplied predicate.

filter arg1 arg2
Signature: ('T -> bool) -> FlatList<'T> -> FlatList<'T>
Type parameters: 'T

O(n). Returns a flatlist that contains only the elements of the supplied flatlist for which the supplied condition returns true.

fold arg1 arg2 arg3
Signature: ('State -> 'T -> 'State) -> 'State -> FlatList<'T> -> 'State
Type parameters: 'State, 'T

O(n). Applies a function to each element of a flatlist from left to right (first to last), threading an accumulator argument through the computation.

fold2 arg1 arg2 arg3 arg4
Signature: ('State -> 'T1 -> 'T2 -> 'State) -> 'State -> FlatList<'T1> -> FlatList<'T2> -> 'State
Type parameters: 'State, 'T1, 'T2

O(n). Applies a function to pairs of elements from two supplied flatlists, left-to-right, threading an accumulator argument through the computation. The two input flatlists must have the same lengths; otherwise, ArgumentException is raised.

foldBack arg1 arg2 arg3
Signature: ('T -> 'State -> 'State) -> FlatList<'T> -> 'State -> 'State
Type parameters: 'T, 'State

O(n). Applies a function to each element of a flatlist from right to left (last to first), threading an accumulator argument through the computation.

foldBack2 arg1 arg2 arg3 arg4
Signature: ('T1 -> 'T2 -> 'State -> 'State) -> FlatList<'T1> -> FlatList<'T2> -> 'State -> 'State
Type parameters: 'T1, 'T2, 'State

O(n). Applies a function to pairs of elements from two supplied flatlists, right-to-left, threading an accumulator argument through the computation. The two input flatlists must have the same lengths; otherwise, ArgumentException is raised.

forall arg1 arg2
Signature: ('T -> bool) -> FlatList<'T> -> bool
Type parameters: 'T

O(n). Tests whether all elements of a flatlist satisfy the supplied condition.

forall2 arg1 arg2 arg3
Signature: ('T1 -> 'T2 -> bool) -> FlatList<'T1> -> FlatList<'T2> -> bool
Type parameters: 'T1, 'T2

O(n). Tests whether all corresponding elements of two supplied flatlists satisfy a supplied condition.

init arg1 f
Signature: int -> f:(int -> 'T) -> FlatList<'T>
Type parameters: 'T

O(n). Uses a supplied function to create a flatlist of the supplied dimension.

isEmpty arg1
Signature: FlatList<'T> -> bool
Type parameters: 'T

O(1). O(1). Returns true if the flatlist has no elements.

iter arg1 arg2
Signature: ('T -> unit) -> FlatList<'T> -> unit
Type parameters: 'T

O(n). Applies the supplied function to each element of a flatlist.

iter2 arg1 arg2 arg3
Signature: ('T1 -> 'T2 -> unit) -> FlatList<'T1> -> FlatList<'T2> -> unit
Type parameters: 'T1, 'T2

O(n). Applies the supplied function to a pair of elements from matching indexes in two flatlists, also passing the index of the elements. The two flatlists must have the same lengths; otherwise, an ArgumentException is raised.

iteri arg1 arg2
Signature: (int -> 'T -> unit) -> FlatList<'T> -> unit
Type parameters: 'T

O(n). Applies the supplied function to each element of a flatlist. The integer passed to the function indicates the index of the element.

length arg1
Signature: FlatList<'T> -> int
Type parameters: 'T

O(1). Returns the number of items in the flatlist.

map arg1 arg2
Signature: ('T1 -> 'T2) -> FlatList<'T1> -> FlatList<'T2>
Type parameters: 'T1, 'T2

O(n). Creates a flatlist whose elements are the results of applying the supplied function to each of the elements of a supplied flatlist.

map2 arg1 arg2 arg3
Signature: ('T1 -> 'T2 -> 'T3) -> FlatList<'T1> -> FlatList<'T2> -> FlatList<'T3>
Type parameters: 'T1, 'T2, 'T3

O(n). Creates a flatlist whose elements are the results of applying the supplied function to the corresponding elements of two supplied flatlists. The two input flatlists must have the same lengths; otherwise, ArgumentException is raised.

mapi arg1 arg2
Signature: (int -> 'T1 -> 'T2) -> FlatList<'T1> -> FlatList<'T2>
Type parameters: 'T1, 'T2

O(n). Creates a flatlist whose elements are the results of applying the supplied function to each of the elements of a supplied flatlist. An integer index passed to the function indicates the index of the element being transformed.

ofList arg1
Signature: 'T list -> FlatList<'T>
Type parameters: 'T

O(n). Creates a flatlist from the supplied list.

ofSeq arg1
Signature: seq<'T> -> FlatList<'T>
Type parameters: 'T

O(n). Creates a flatlist from the supplied enumerable object.

partition arg1 arg2
Signature: ('T -> bool) -> FlatList<'T> -> FlatList<'T> * FlatList<'T>
Type parameters: 'T

O(n). Splits a flatlist into two flatlists, one containing the elements for which the supplied condition returns true, and the other containing those for which it returns false.

physicalEquality arg1 arg2
Signature: FlatList<'T> -> FlatList<'T> -> bool
Type parameters: 'T

O(1). True if the flatlists are reference-equal, false otherwise

rev arg1
Signature: FlatList<'T> -> FlatList<'T>
Type parameters: 'T

O(n). Reverses the order of the elements in a supplied array.

singleton arg1
Signature: 'T -> FlatList<'T>
Type parameters: 'T

O(1). Returns a flatlist of one element.

sum arg1
Signature: FlatList<int> -> int

O(n). Returns the sum of the elements in the flatlist.

sumBy arg1 arg2
Signature: ('T -> int) -> FlatList<'T> -> int
Type parameters: 'T

O(n). Returns the sum of the results generated by applying a function to each element of a flatlist.

toList arg1
Signature: FlatList<'T> -> 'T list
Type parameters: 'T

O(n). Converts the supplied flatlist to a list.

toMap arg1
Signature: FlatList<'Key * 'T> -> Map<'Key,'T>
Type parameters: 'Key, 'T

O(n). Converts the supplied flatlist of tuple pairs to a map.

tryFind arg1 arg2
Signature: ('T -> bool) -> FlatList<'T> -> 'T option
Type parameters: 'T

O(n). Returns the first element in the supplied flatlist for which the supplied function returns true. Returns None if no such element exists.

unzip arg1
Signature: FlatList<'T1 * 'T2> -> FlatList<'T1> * FlatList<'T2>
Type parameters: 'T1, 'T2

O(n). Splits a flatlist of tuple pairs into a tuple of two flatlists.

zip arg1 arg2
Signature: FlatList<'T1> -> FlatList<'T2> -> FlatList<'T1 * 'T2>
Type parameters: 'T1, 'T2

O(n). Combines two flatlists into a flatlist of tuples that have two elements. The two flatlists must have equal lengths; otherwise, ArgumentException is raised.

Fork me on GitHub