Logo Paket

Seq Module

Functions and values

Function or value Description

Seq.partitionAndChoose predicate choosefn1 choosefn2 sqs

Full Usage: Seq.partitionAndChoose predicate choosefn1 choosefn2 sqs

Parameters:
    predicate : 'a -> bool
    choosefn1 : 'a -> 'b option
    choosefn2 : 'a -> 'c option
    sqs : 'a seq

Returns: 'b seq * 'c seq
Type parameters: 'a, 'b, 'c

Unzip a seq by mapping the elements that satisfy the predicate into the first seq and mapping the elements that fail to satisfy the predicate into the second seq

predicate : 'a -> bool
choosefn1 : 'a -> 'b option
choosefn2 : 'a -> 'c option
sqs : 'a seq
Returns: 'b seq * 'c seq

Seq.tryExactlyOne s

Full Usage: Seq.tryExactlyOne s

Parameters:
    s : 'a

Returns: 'b option
Type parameters: 'a, 'b (requires :> 'b Microsoft.FSharp.Collections.seq)
s : 'a
Returns: 'b option

Seq.tryTake n s

Full Usage: Seq.tryTake n s

Parameters:
    n : int
    s : 'a

Returns: 'b seq
Type parameters: 'a, 'b (requires :> 'b Microsoft.FSharp.Collections.seq)
n : int
s : 'a
Returns: 'b seq

Type something to start searching.