Extensions for F#'s List module.
Function or value | Description |
|
|
|
Extracts from a list of Choice all the Choice1Of2 elements. All the Choice1Of2 elements are extracted in order.
|
|
Extracts from a list of Choice all the Choice2Of2 elements. All the Choice2Of2 elements are extracted in order.
|
Full Usage:
List.cons hd tl
Parameters:
'a
tl : 'a list
Returns: 'a list
|
|
Full Usage:
List.equalsWith eq xs ys
Parameters:
'a -> 'a -> bool
xs : 'a list
ys : 'a list
Returns: bool
|
|
Full Usage:
List.fill total elem list
Parameters:
int
elem : 'a
list : 'a list
Returns: 'a list
|
|
Full Usage:
List.groupNeighboursBy projection source
Parameters:
'T -> 'Key
source : 'T list
Returns: ('Key * 'T list) list
|
Applies a key-generating function to each element of a list and yields a list of unique keys and a list of all elements that have each key. This function groups together only neighbouring elements in the list.
|
Full Usage:
List.lift2 f l1 l2
Parameters:
'a -> 'b -> 'c
l1 : 'a list
l2 : 'b list
Returns: 'c list
|
|
Full Usage:
List.mapAccum f s l
Parameters:
'a -> 'b -> 'a * 'c
s : 'a
l : 'b list
Returns: 'a * 'c list
|
Behaves like a combination of map and fold; it applies a function to each element of a list, passing an accumulating parameter from left to right, and returning a final value of this accumulator together with the new list.
|
Full Usage:
List.mapIf pred f
Parameters:
'a -> bool
f : 'a -> 'a
Returns: 'a list -> 'a list
|
|
Full Usage:
List.merge a b
Parameters:
'a list
b : 'a list
Returns: 'a list
|
|
Full Usage:
List.mergeBy f a b
Parameters:
'a -> 'b
a : 'a list
b : 'a list
Returns: 'a list
|
|
Full Usage:
List.pad amt elem list
Parameters:
int
elem : 'a
list : 'a list
Returns: 'a list
|
|
Full Usage:
List.partitionChoices xs
Parameters:
Choice<'a, 'b> list
Returns: 'a list * 'b list
|
Partitions a list of Choice into two lists. All the Choice1Of2 elements are extracted, in order, to the first component of the output. Similarly the Choice2Of2 elements are extracted to the second component of the output.
|
Full Usage:
List.singleton x
Parameters:
'a
Returns: 'a list
|
|
Full Usage:
List.skip n l
Parameters:
int
l : 'a list
Returns: 'a list
|
|
Full Usage:
List.skipUntil pred l
Parameters:
'a -> bool
l : 'a list
Returns: 'a list
|
|
Full Usage:
List.skipWhile pred l
Parameters:
'a -> bool
l : 'a list
Returns: 'a list
|
|
Full Usage:
List.span pred l
Parameters:
'a -> bool
l : 'a list
Returns: 'a list * 'a list
|
|
Full Usage:
List.split pred l
Parameters:
'a -> bool
l : 'a list
Returns: 'a list * 'a list
|
|
Full Usage:
List.splitAt n l
Parameters:
int
l : 'a list
Returns: 'a list * 'a list
|
|
Full Usage:
List.take n l
Parameters:
int
l : 'a list
Returns: 'a list
|
|
Full Usage:
List.takeUntil pred l
Parameters:
'a -> bool
l : 'a list
Returns: 'a list
|
|
Full Usage:
List.takeWhile pred l
Parameters:
'a -> bool
l : 'a list
Returns: 'a list
|
|
Full Usage:
List.transpose lst
Parameters:
'a list list
Returns: 'a list list
|
|