Function or value | Description | ||
|
|||
|
|||
Full Usage:
allPairs source1 source2
Parameters:
NonEmptySeq<'a>
-
The first sequence.
source2 : NonEmptySeq<'b>
-
The second sequence.
Returns: NonEmptySeq<'a * 'b>
The result sequence.
|
|
||
Full Usage:
append source1 source2
Parameters:
NonEmptySeq<'b>
-
The first sequence.
source2 : NonEmptySeq<'b>
-
The second sequence.
Returns: NonEmptySeq<'b>
The result sequence.
|
The returned sequence may be passed between threads safely. However, individual IEnumerator values generated from the returned sequence should not be accessed concurrently.
|
||
Full Usage:
appendSeq source seq
Parameters:
NonEmptySeq<'a>
seq : 'a seq
Returns: NonEmptySeq<'a>
|
|
||
Full Usage:
appendSeqBack seq source
Parameters:
'a seq
source : NonEmptySeq<'a>
Returns: NonEmptySeq<'a>
|
|
||
Full Usage:
apply f x
Parameters:
NonEmptySeq<('a -> 'b)>
x : NonEmptySeq<'a>
Returns: NonEmptySeq<'b>
|
|
||
Full Usage:
bind mapping source
Parameters:
'T -> NonEmptySeq<'U>
-
A function to transform elements of the input NonEmptySequence into the NonEmptySequences
that will then be concatenated.
source : NonEmptySeq<'T>
-
The input NonEmptySequence.
Returns: NonEmptySeq<'U>
The result NonEmptySequence.
|
Remember NonEmptySequence is lazy, effects are delayed until it is enumerated.This is the same as Seq.collect but the type of the mapping function is not flexible.
|
||
Full Usage:
cache source
Parameters:
NonEmptySeq<'a>
-
The input sequence.
Returns: NonEmptySeq<'a>
The result sequence.
|
Returns a sequence that corresponds to a cached version of the input sequence. This result sequence will have the same elements as the input sequence. The result can be enumerated multiple times. The input sequence will be enumerated at most once and only as far as is necessary. Caching a sequence is typically useful when repeatedly evaluating items in the original sequence is computationally expensive or if iterating the sequence causes side-effects that the user does not want to be repeated multiple times. Enumeration of the result sequence is thread safe in the sense that multiple independent IEnumerator values may be used simultaneously from different threads (accesses to the internal lookaside table are thread safe). Each individual IEnumerator is not typically thread safe and should not be accessed concurrently. Once enumeration of the input sequence has started, it's enumerator will be kept live by this object until the enumeration has completed. At that point, the enumerator will be disposed. The enumerator may be disposed and underlying cache storage released by converting the returned sequence object to type IDisposable, and calling the Dispose method on this object. The sequence object may then be re-enumerated and a fresh enumerator will be used.
|
||
Full Usage:
collect mapping source
Parameters:
'a -> '#NonEmptySeq<'b>
-
A function to transform elements of the input sequence into the sequences
that will then be concatenated.
source : NonEmptySeq<'a>
-
The input sequence.
Returns: NonEmptySeq<'b>
The result sequence.
|
Remember sequence is lazy, effects are delayed until it is enumerated.
|
||
Full Usage:
concat sources
Parameters:
NonEmptySeq<'#NonEmptySeq<'a>>
-
The input enumeration-of-enumerations.
Returns: NonEmptySeq<'a>
The result sequence.
|
The returned sequence may be passed between threads safely. However, individual IEnumerator values generated from the returned sequence should not be accessed concurrently.
|
||
|
|||
Full Usage:
delay generator
Parameters:
unit -> NonEmptySeq<'a>
-
The generating function for the sequence.
Returns: NonEmptySeq<'a>
|
The input function is evaluated each time an IEnumerator for the sequence is requested.
|
||
Full Usage:
distinct source
Parameters:
NonEmptySeq<'T>
-
The input sequence.
Returns: NonEmptySeq<'T>
The resulting sequence without duplicates.
|
|
||
Full Usage:
head source
Parameters:
NonEmptySeq<'a>
-
The input sequence.
Returns: 'a
The first element of the sequence.
|
|||
Full Usage:
indexed source
Parameters:
NonEmptySeq<'a>
-
The input sequence.
Returns: NonEmptySeq<int * 'a>
The result sequence.
|
|||
Full Usage:
initInfinite initializer
Parameters:
int -> 'b
-
A function that generates an item in the sequence from a given index.
Returns: NonEmptySeq<'b>
The result sequence.
|
Generates a new sequence which, when iterated, will return successive elements by calling the given function. The results of calling the function will not be saved, that is the function will be reapplied as necessary to regenerate the elements. The function is passed the index of the item being generated.
The returned sequence may be passed between threads safely. However,
individual IEnumerator values generated from the returned sequence should not be accessed concurrently.
Iteration can continue up to
|
||
Full Usage:
lift2 f x1 x2
Parameters:
'd -> 'e -> 'f
x1 : NonEmptySeq<'d>
x2 : NonEmptySeq<'e>
Returns: NonEmptySeq<'f>
|
|
||
Full Usage:
lift3 f x1 x2 x3
Parameters:
'e -> 'f -> 'g -> 'h
-
Mapping function taking three element combination as input.
x1 : NonEmptySeq<'g>
-
First NonEmptySeq.
x2 : NonEmptySeq<'e>
-
Second NonEmptySeq.
x3 : NonEmptySeq<'f>
-
Third NonEmptySeq.
Returns: NonEmptySeq<'h>
NonEmptySeq with values returned from mapping function.
|
|
||
Full Usage:
map mapping source
Parameters:
'a -> 'b
-
A function to transform items from the input sequence.
source : NonEmptySeq<'a>
-
The input sequence.
Returns: NonEmptySeq<'b>
The result sequence.
|
The returned sequence may be passed between threads safely. However, individual IEnumerator values generated from the returned sequence should not be accessed concurrently.
|
||
Full Usage:
map2 mapping source1 source2
Parameters:
'b -> 'c -> 'd
-
A function to transform pairs of items from the input sequences.
source1 : NonEmptySeq<'b>
-
The first input sequence.
source2 : NonEmptySeq<'c>
-
The second input sequence.
Returns: NonEmptySeq<'d>
The result sequence.
|
|
||
Full Usage:
map3 mapping source1 source2 source3
Parameters:
'e -> 'f -> 'g -> 'h
-
The function to transform triples of elements from the input sequences.
source1 : NonEmptySeq<'e>
-
The first input sequence.
source2 : NonEmptySeq<'f>
-
The second input sequence.
source3 : NonEmptySeq<'g>
-
The third input sequence.
Returns: NonEmptySeq<'h>
The result sequence.
|
|
||
Full Usage:
mapFold mapping state source
Parameters:
'State -> 'T -> 'Result * 'State
-
The function to transform elements from the input collection and accumulate the final value.
state : 'State
-
The initial state.
source : NonEmptySeq<'T>
-
The input collection.
Returns: NonEmptySeq<'Result> * 'State
The collection of transformed elements, and the final accumulated value.
|
This function digests the whole initial sequence as soon as it is called. As a result this function should not be used with large or infinite sequences.This function consumes the whole input sequence before yielding the first element of the result sequence.
|
||
Full Usage:
mapFoldBack mapping source state
Parameters:
'T -> 'State -> 'Result * 'State
-
The function to transform elements from the input collection and accumulate the final value.
source : NonEmptySeq<'T>
-
The input collection.
state : 'State
-
The initial state.
Returns: NonEmptySeq<'Result> * 'State
The collection of transformed elements, and the final accumulated value.
|
This function digests the whole initial sequence as soon as it is called. As a result this function should not be used with large or infinite sequences.This function consumes the whole input sequence before yielding the first element of the result sequence.
|
||
Full Usage:
mapi mapping source
Parameters:
int -> 'a -> 'b
-
A function to transform items from the input sequence that also supplies the current index.
source : NonEmptySeq<'a>
-
The input sequence.
Returns: NonEmptySeq<'b>
The result sequence.
|
|
||
Full Usage:
mapi2 mapping source1 source2
Parameters:
int -> 'a -> 'b -> 'c
-
A function to transform pairs of items from the input sequences that also supplies the current index.
source1 : NonEmptySeq<'a>
-
The first input sequence.
source2 : NonEmptySeq<'b>
-
The second input sequence.
Returns: NonEmptySeq<'c>
The result sequence.
|
Builds a new collection whose elements are the results of applying the given function to the corresponding pairs of elements from the two sequences. If one input sequence is shorter than the other then the remaining elements of the longer sequence are ignored. The integer index passed to the function indicates the index (from 0) of element being transformed.
|
||
Full Usage:
ofArray array
Parameters:
'a[]
-
The input array.
Returns: NonEmptySeq<'a>
Non empty sequence containing the elements of the array.
|
Throws exception for empty array
|
||
Full Usage:
ofList list
Parameters:
'f list
-
The input list.
Returns: NonEmptySeq<'f>
Non empty sequence containing the elements of the list.
|
Throws exception for empty list
|
||
Full Usage:
ofSeq seq
Parameters:
'i seq
-
The input sequence.
Returns: NonEmptySeq<'i>
Non empty sequence containing the elements of the sequence.
|
Throws exception for empty sequence. Evaluates the first element of the sequence and may trigger side effects. If you are sure that the sequence is not empty and want to avoid that, you can use `unsafeOfSeq` instead.
|
||
Full Usage:
pairwise source
Parameters:
NonEmptySeq<'a>
-
The input sequence.
Returns: NonEmptySeq<'a * 'a>
The result sequence.
|
|||
Full Usage:
permute indexMap source
Parameters:
int -> int
-
The function that maps input indices to output indices.
source : NonEmptySeq<'a>
-
The input sequence.
Returns: NonEmptySeq<'a>
The result sequence.
|
Note that this function returns a sequence that digests the whole initial sequence as soon as that sequence is iterated. As a result this function should not be used with large or infinite sequences.This function consumes the whole input sequence before yielding the first element of the result sequence.
|
||
Full Usage:
readonly source
Parameters:
NonEmptySeq<'a>
-
The input sequence.
Returns: NonEmptySeq<'a>
The result sequence.
|
Builds a new sequence object that delegates to the given sequence object. This ensures the original sequence cannot be rediscovered and mutated by a type cast. For example, if given an array the returned sequence will return the elements of the array, but you cannot cast the returned sequence object to an array.
|
||
Full Usage:
reduce reduction source
Parameters:
'T -> 'T -> 'T
-
The function to reduce two sequence elements to a single element.
source : 'T seq
-
The input sequence.
Returns: 'T
The final reduced value.
|
Applies a function to each element of the sequence, threading an accumulator argument
through the computation. Apply the function to the first two elements of the sequence.
Then feed this result into the function along with the third element and so on.
Return the final result. If the input function is
|
||
Full Usage:
replace oldValue newValue source
Parameters:
NonEmptySeq<'T>
newValue : NonEmptySeq<'T>
source : NonEmptySeq<'T>
Returns: NonEmptySeq<'T>
|
|
||
Full Usage:
rev source
Parameters:
NonEmptySeq<'a>
-
The input sequence.
Returns: NonEmptySeq<'a>
The reversed sequence.
|
This function consumes the whole input sequence before yielding the first element of the reversed sequence.
|
||
Full Usage:
scan folder state source
Parameters:
'State -> 'T -> 'State
-
A function that updates the state with each element from the sequence.
state : 'State
-
The initial state.
source : NonEmptySeq<'T>
-
The input sequence.
Returns: NonEmptySeq<'State>
The resulting sequence of computed states.
|
|
||
Full Usage:
scanBack folder source state
Parameters:
'T -> 'State -> 'State
-
A function that updates the state with each element from the sequence.
source : NonEmptySeq<'T>
-
The input sequence.
state : 'State
-
The initial state.
Returns: NonEmptySeq<'State>
The resulting sequence of computed states.
|
This function returns a sequence that digests the whole initial sequence as soon as that sequence is iterated. As a result this function should not be used with large or infinite sequences. This function consumes the whole input sequence before yielding the first element of the result sequence.
|
||
Full Usage:
singleton value
Parameters:
'b
-
The input item.
Returns: NonEmptySeq<'b>
The result sequence of one item.
|
|||
Full Usage:
sort source
Parameters:
NonEmptySeq<'a>
-
The input sequence.
Returns: NonEmptySeq<'a>
The result sequence.
|
This function returns a sequence that digests the whole initial sequence as soon as that sequence is iterated. As a result this function should not be used with large or infinite sequences. The function makes no assumption on the ordering of the original sequence. This is a stable sort, that is the original order of equal elements is preserved.This function consumes the whole input sequence before yielding the first element of the result sequence.
|
||
Full Usage:
sortBy projection source
Parameters:
'a -> 'b
-
A function to transform items of the input sequence into comparable keys.
source : NonEmptySeq<'a>
-
The input sequence.
Returns: NonEmptySeq<'a>
The result sequence.
|
This function returns a sequence that digests the whole initial sequence as soon as that sequence is iterated. As a result this function should not be used with large or infinite sequences. The function makes no assumption on the ordering of the original sequence. This is a stable sort, that is the original order of equal elements is preserved.
|
||
Full Usage:
sortByDescending projection source
Parameters:
'a -> 'b
-
A function to transform items of the input sequence into comparable keys.
source : NonEmptySeq<'a>
-
The input sequence.
Returns: NonEmptySeq<'a>
The result sequence.
|
This function returns a sequence that digests the whole initial sequence as soon as that sequence is iterated. As a result this function should not be used with large or infinite sequences. The function makes no assumption on the ordering of the original sequence. This is a stable sort, that is the original order of equal elements is preserved.
|
||
Full Usage:
sortDescending source
Parameters:
NonEmptySeq<'a>
-
The input sequence.
Returns: NonEmptySeq<'a>
The result sequence.
|
This function returns a sequence that digests the whole initial sequence as soon as that sequence is iterated. As a result this function should not be used with large or infinite sequences. The function makes no assumption on the ordering of the original sequence. This is a stable sort, that is the original order of equal elements is preserved.
|
||
Full Usage:
sortWith comparer source
Parameters:
'a -> 'a -> int
-
The function to compare the collection elements.
source : NonEmptySeq<'a>
-
The input sequence.
Returns: NonEmptySeq<'a>
The result sequence.
|
This function returns a sequence that digests the whole initial sequence as soon as that sequence is iterated. As a result this function should not be used with large or infinite sequences. The function makes no assumption on the ordering of the original sequence. This is a stable sort, that is the original order of equal elements is preserved.This function consumes the whole input sequence before yielding the first element of the result sequence.
|
||
Full Usage:
tail source
Parameters:
NonEmptySeq<'a>
-
The input sequence.
Returns: 'a seq
The result sequence.
|
|||
|
|||
|
|||
|
|||
Full Usage:
unfold generator head state
Parameters:
'T -> 'State -> ('T * 'State) option
head : 'T
state : 'State
Returns: NonEmptySeq<'T>
|
|
||
Full Usage:
unsafeOfSeq seq
Parameters:
'c seq
-
The input sequence.
Returns: NonEmptySeq<'c>
Non empty sequence containing the elements of the original sequence.
|
**This function does not check whether the sequence is actually non empty or not.** Use this function only if you are sure that the sequence is not empty and you don't want to evaluate the first element of the sequence which would cause a side effect. Otherwise, always use `ofSeq`.
|
||
Full Usage:
zip source1 source2
Parameters:
NonEmptySeq<'a>
-
The first input sequence.
source2 : NonEmptySeq<'b>
-
The second input sequence.
Returns: NonEmptySeq<'a * 'b>
The result sequence.
|
|
||
Full Usage:
zip3 source1 source2 source3
Parameters:
NonEmptySeq<'a>
-
The first input sequence.
source2 : NonEmptySeq<'b>
-
The second input sequence.
source3 : NonEmptySeq<'c>
-
The third input sequence.
Returns: NonEmptySeq<'a * 'b * 'c>
The result sequence.
|
|