FSharpx.Extras


List Module

Functions and values

Function or value Description

concatMap f

Full Usage: concatMap f

Parameters:
    f : 'a -> 'b

Returns: Iteratee<'b, 'c> -> Iteratee<'a list, Iteratee<'b, 'c>>
f : 'a -> 'b
Returns: Iteratee<'b, 'c> -> Iteratee<'a list, Iteratee<'b, 'c>>

connect sink source

Full Usage: connect sink source

Parameters:
    sink : Iteratee<'a, 'b>
    source : 'a list

Returns: 'b * 'a list
sink : Iteratee<'a, 'b>
source : 'a list
Returns: 'b * 'a list

consume

Full Usage: consume

Returns: Iteratee<'T list, 'T list>
Returns: Iteratee<'T list, 'T list>

drop n

Full Usage: drop n

Parameters:
    n : int

Returns: Iteratee<'a list, unit>
n : int
Returns: Iteratee<'a list, unit>

dropUntil pred

Full Usage: dropUntil pred

Parameters:
    pred : 'a -> bool

Returns: Iteratee<'a list, unit>
pred : 'a -> bool
Returns: Iteratee<'a list, unit>

dropWhile pred

Full Usage: dropWhile pred

Parameters:
    pred : 'a -> bool

Returns: Iteratee<'a list, unit>
pred : 'a -> bool
Returns: Iteratee<'a list, unit>

enumerate str i

Full Usage: enumerate str i

Parameters:
    str : 'a list
    i : Iteratee<'a list, 'b>

Returns: Iteratee<'a list, 'b>
str : 'a list
i : Iteratee<'a list, 'b>
Returns: Iteratee<'a list, 'b>

enumeratePure1Chunk str i

Full Usage: enumeratePure1Chunk str i

Parameters:
    str : 'a list
    i : Iteratee<'a list, 'b>

Returns: Iteratee<'a list, 'b>
str : 'a list
i : Iteratee<'a list, 'b>
Returns: Iteratee<'a list, 'b>

enumeratePureNChunk n str i

Full Usage: enumeratePureNChunk n str i

Parameters:
    n : int
    str : 'a list
    i : Iteratee<'a list, 'b>

Returns: Iteratee<'a list, 'b>
n : int
str : 'a list
i : Iteratee<'a list, 'b>
Returns: Iteratee<'a list, 'b>

filter p

Full Usage: filter p

Parameters:
    p : 'a -> bool

Returns: Iteratee<'a list, 'b> -> Iteratee<'a list, Iteratee<'a list, 'b>>
p : 'a -> bool
Returns: Iteratee<'a list, 'b> -> Iteratee<'a list, Iteratee<'a list, 'b>>

fold step seed

Full Usage: fold step seed

Parameters:
    step : 'a -> 'b -> 'a
    seed : 'a

Returns: Iteratee<'b list, 'a>
step : 'a -> 'b -> 'a
seed : 'a
Returns: Iteratee<'b list, 'a>

head

Full Usage: head

Returns: Iteratee<'T list, 'T option>
Returns: Iteratee<'T list, 'T option>

heads str

Full Usage: heads str

Parameters:
    str : 'a list

Returns: Iteratee<'a list, int>
str : 'a list
Returns: Iteratee<'a list, int>

isolate n _arg1

Full Usage: isolate n _arg1

Parameters:
Returns: Iteratee<'a list, Iteratee<'a list, 'b>>
n : int
_arg1 : Iteratee<'a list, 'b>
Returns: Iteratee<'a list, Iteratee<'a list, 'b>>

isolateUntil pred

Full Usage: isolateUntil pred

Parameters:
    pred : 'a -> bool

Returns: Iteratee<'a list, 'b> -> Iteratee<'a list, Iteratee<'a list, 'b>>
pred : 'a -> bool
Returns: Iteratee<'a list, 'b> -> Iteratee<'a list, Iteratee<'a list, 'b>>

isolateWhile pred

Full Usage: isolateWhile pred

Parameters:
    pred : 'a -> bool

Returns: Iteratee<'a list, 'b> -> Iteratee<'a list, Iteratee<'a list, 'b>>
pred : 'a -> bool
Returns: Iteratee<'a list, 'b> -> Iteratee<'a list, Iteratee<'a list, 'b>>

length

Full Usage: length

Returns: Iteratee<'T list, int>
Returns: Iteratee<'T list, int>

many i

Full Usage: many i

Parameters:
Returns: Iteratee<'a, 'b list list>
i : Iteratee<'a, 'b list>
Returns: Iteratee<'a, 'b list list>

map f

Full Usage: map f

Parameters:
    f : 'a -> 'b

Returns: Iteratee<'b list, 'c> -> Iteratee<'a list, Iteratee<'b list, 'c>>
f : 'a -> 'b
Returns: Iteratee<'b list, 'c> -> Iteratee<'a list, Iteratee<'b list, 'c>>

peek

Full Usage: peek

Returns: Iteratee<'T list, 'T option>
Returns: Iteratee<'T list, 'T option>

readLine

Full Usage: readLine

Returns: Iteratee<char list, char list>
Returns: Iteratee<char list, char list>

readLines

Full Usage: readLines

Returns: Iteratee<char list, String list>
Returns: Iteratee<char list, String list>

repeat a

Full Usage: repeat a

Parameters:
    a : 'a

Returns: Iteratee<'a list, 'b> -> Iteratee<'a list, 'b>
a : 'a
Returns: Iteratee<'a list, 'b> -> Iteratee<'a list, 'b>

replicate maxCount getNext

Full Usage: replicate maxCount getNext

Parameters:
    maxCount : int
    getNext : 'a

Returns: Iteratee<'a list, 'b> -> Iteratee<'a list, 'b>
maxCount : int
getNext : 'a
Returns: Iteratee<'a list, 'b> -> Iteratee<'a list, 'b>

skipNewline

Full Usage: skipNewline

Returns: Iteratee<char list, int>
Returns: Iteratee<char list, int>

take n

Full Usage: take n

Parameters:
    n : int

Returns: Iteratee<'a list, 'a list>
n : int
Returns: Iteratee<'a list, 'a list>

takeUntil pred

Full Usage: takeUntil pred

Parameters:
    pred : 'a -> bool

Returns: Iteratee<'a list, 'a list>
pred : 'a -> bool
Returns: Iteratee<'a list, 'a list>

takeWhile pred

Full Usage: takeWhile pred

Parameters:
    pred : 'a -> bool

Returns: Iteratee<'a list, 'a list>
pred : 'a -> bool
Returns: Iteratee<'a list, 'a list>