Extensions for F#'s Seq module.
Function or value | Description |
Full Usage:
Seq.asCircular values
Parameters:
seq<'a>
Returns: seq<'a>
|
|
Full Usage:
Seq.asCircularOnLoop f values
Parameters:
unit -> unit
values : seq<'a>
Returns: seq<'a>
|
Creates a infinite sequences of the given values, executing the given function everytime the given seq is exhausted
|
Full Usage:
Seq.asCircularWithBreak values
Parameters:
seq<'a>
Returns: seq<'a option>
|
Creates a infinite sequences of the given values returning None everytime the given seq is exhausted
|
|
|
|
Extracts from a seq of Choice all the Choice1Of2 elements. All the Choice1Of2 elements are extracted in order.
|
|
Extracts from a seq of Choice all the Choice2Of2 elements. All the Choice2Of2 elements are extracted in order.
|
Full Usage:
Seq.combine f a b
Parameters:
'a -> 'b -> 'c
a : seq<'a>
b : seq<'b>
Returns: seq<'c>
|
Creates a new collection whose elements are the results of applying the given function to the corresponding pairs of elements from the two sequences. Unlike Seq.map2, if one input sequence is shorter than the other then the remaining elements of the longer sequence are not ignored, they are yielded at the end of the resulting sequence.
|
Full Usage:
Seq.cons x xs
Parameters:
'a
xs : seq<'a>
Returns: seq<'a>
|
|
Full Usage:
Seq.contract n source
Parameters:
int
source : seq<'a>
Returns: seq<'a>
|
|
Full Usage:
Seq.equalsWith eq xs ys
Parameters:
'a -> 'a -> bool
xs : seq<'a>
ys : seq<'a>
Returns: bool
|
|
Full Usage:
Seq.groupNeighboursBy projection source
Parameters:
'T -> 'Key
source : seq<'T>
Returns: seq<'Key * seq<'T>>
|
Applies a key-generating function to each element of a sequence and yields a sequence of unique keys and a sequence of all elements that have each key. This function groups together only neighbouring elements in the seq.
|
Full Usage:
Seq.grow n
Parameters:
int
Returns: seq<'a> -> seq<'a>
|
|
Full Usage:
Seq.index a
Parameters:
seq<'a>
-
Returns: seq<int * 'a>
|
|
Full Usage:
Seq.intersperse sep list
Parameters:
'a
list : seq<'a>
Returns: seq<'a>
|
|
Full Usage:
Seq.iterBreak f seq
Parameters:
'T -> bool
seq : seq<'T>
|
|
Full Usage:
Seq.lift2 f l1 l2
Parameters:
'a -> 'b -> 'c
l1 : seq<'a>
l2 : seq<'b>
Returns: seq<'c>
|
|
|
|
Full Usage:
Seq.ofStreamByChunk chunkSize stream
Parameters:
int
stream : Stream
Returns: seq<byte[]>
|
Converts a stream into a seq of byte[] where the array is of the length given Note: the last chunk maybe less than the given chunk size
|
Full Usage:
Seq.ofStreamReader streamReader
Parameters:
StreamReader
Returns: seq<string>
|
|
Full Usage:
Seq.page page pageSize source
Parameters:
int
pageSize : int
source : seq<'a>
Returns: seq<'a>
|
|
|
Partitions a seq of Choice into two seqs. 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:
Seq.prependToAll sep list
Parameters:
'a
list : seq<'a>
Returns: seq<'a>
|
|
Full Usage:
Seq.repeat a
Parameters:
'a
Returns: seq<'a>
|
|
Full Usage:
Seq.skipNoFail count source
Parameters:
int
source : seq<'a>
Returns: IEnumerable<'a>
|
The same as Seq.skip except it returns empty if the sequence is empty or does not have enough elements. Alias for Enumerable.Skip
|
Full Usage:
Seq.span predicate source
Parameters:
'a -> bool
source : seq<'a>
Returns: seq<'a> * seq<'a>
|
|
Full Usage:
Seq.splitAt n seq
Parameters:
int
seq : seq<'a>
Returns: seq<'a> * seq<'a>
|
|
Full Usage:
Seq.tail source
Parameters:
seq<'a>
Returns: seq<'a>
|
|
Full Usage:
Seq.tailNoFail source
Parameters:
seq<'a>
Returns: seq<'a>
|
|
Full Usage:
Seq.tryAverage seq
Parameters:
seq<^a>
Returns: ^a option
|
|
Full Usage:
Seq.tryFindWithIndex pred l
Parameters:
'a -> bool
-
Predicate
l : seq<'a>
-
Sequence
Returns: (int * 'a) option
|
Returns the first element (with its index) for which the given function returns true. Return None if no such element exists.
|
Full Usage:
Seq.tryHead source
Parameters:
seq<'a>
Returns: 'a option
|
|
Full Usage:
Seq.tryNth index source
Parameters:
int
source : seq<'a>
Returns: 'a option
|
|
Full Usage:
Seq.unCons s
Parameters:
seq<'a>
Returns: ('a * seq<'a>) option
|
|