FSharpx.Extras


Enumerator

Namespace: FSharpx.Functional

Nested types and modules

TypeDescription
EnumerableBuilder

Functions and values

Function or valueDescription
bind f a
Signature: f:('T option -> IEnumerator<'U>) -> a:IEnumerator<'T> -> IEnumerator<'U>
Type parameters: 'T, 'U
combine a b
Signature: a:IEnumerator<'?11974> -> b:IEnumerator<'?11974> -> IEnumerator<'?11974>
Type parameters: '?11974
delay f
Signature: f:(unit -> IEnumerator<'?11978>) -> IEnumerator<'?11978>
Type parameters: '?11978
empty
Signature: IEnumerator<'T>
Type parameters: 'T
firstOrDefault def en
Signature: def:'T -> en:IEnumerator<'T> -> 'T
Type parameters: 'T
head en
Signature: en:IEnumerator<'T> -> 'T
Type parameters: 'T
iter
Signature: EnumerableBuilder
last en
Signature: en:IEnumerator<'T> -> 'T
Type parameters: 'T
lastOrDefault def en
Signature: def:'T -> en:IEnumerator<'T> -> 'T
Type parameters: 'T
length en
Signature: en:IEnumerator<'T> -> int
Type parameters: 'T
map f en
Signature: f:('?12014 -> '?12015) -> en:IEnumerator<'?12014> -> IEnumerator<'?12015>
Type parameters: '?12014, '?12015
scan f state en
Signature: f:('?12017 -> '?12018 -> '?12017) -> state:'?12017 -> en:IEnumerator<'?12018> -> IEnumerator<'?12017>
Type parameters: '?12017, '?12018

Scan progressively folds over the enumerator, returning a new enumerator that lazily computes each state.

scanUntil f state pred en
Signature: f:('?12026 -> '?12027 -> '?12026) -> state:'?12026 -> pred:('?12026 -> bool) -> en:IEnumerator<'?12027> -> IEnumerator<'?12026>
Type parameters: '?12026, '?12027

Scan progressively folds over the enumerator, returning a new enumerator that lazily computes each state until the provided predicate is true.

scanWhile f state pred en
Signature: f:('?12023 -> '?12024 -> '?12023) -> state:'?12023 -> pred:('?12023 -> bool) -> en:IEnumerator<'?12024> -> IEnumerator<'?12023>
Type parameters: '?12023, '?12024

Scan progressively folds over the enumerator, returning a new enumerator that lazily computes each state while the provided predicate is true.

singleton a
Signature: a:'?11969 -> IEnumerator<'?11969>
Type parameters: '?11969
skip n en
Signature: n:int -> en:IEnumerator<'T> -> IEnumerator<'T>
Type parameters: 'T
take n en
Signature: n:int -> en:IEnumerator<'T> -> IEnumerator<'T>
Type parameters: 'T
toSeq gen
Signature: gen:(unit -> IEnumerator<'T>) -> IEnumerable<'T>
Type parameters: 'T
zip xs ys
Signature: xs:IEnumerator<'?12011> -> ys:IEnumerator<'?12012> -> IEnumerator<'?12011 * '?12012>
Type parameters: '?12011, '?12012
Fork me on GitHub