FSharpPlus


DList Module

Functions and values

Function or value Description

DList.add x l

Full Usage: DList.add x l

Parameters:
Returns: DList<'T>
Modifiers: inline
Type parameters: 'T

O(1). Returns a new DList with the element added to the end.

x : 'T
l : DList<'T>
Returns: DList<'T>

DList.ap f x

Full Usage: DList.ap f x

Parameters:
Returns: DList<'b>
Modifiers: inline
f : DList<('a -> 'b)>
x : DList<'a>
Returns: DList<'b>

DList.append left right

Full Usage: DList.append left right

Parameters:
Returns: DList<'T>

O(1). Returns a new DList of two lists.

left : DList<'T>
right : DList<'T>
Returns: DList<'T>

DList.bind m k

Full Usage: DList.bind m k

Parameters:
Returns: DList<'a>
Modifiers: inline
m : DList<'a>
k : 'b -> DList<'a>
Returns: DList<'a>

DList.concat x

Full Usage: DList.concat x

Parameters:
Returns: DList<'a>
x : DList<DList<'a>>
Returns: DList<'a>

DList.cons hd l

Full Usage: DList.cons hd l

Parameters:
Returns: DList<'T>

O(1). Returns a new DList with the element added to the beginning.

hd : 'T
l : DList<'T>
Returns: DList<'T>

DList.empty

Full Usage: DList.empty

Returns: DList<'T>

O(1). Returns DList of no elements.

Returns: DList<'T>

DList.fold f state l

Full Usage: DList.fold f state l

Parameters:
    f : 'State -> 'T -> 'State
    state : 'State
    l : DList<'T>

Returns: 'State
f : 'State -> 'T -> 'State
state : 'State
l : DList<'T>
Returns: 'State

DList.foldBack f l state

Full Usage: DList.foldBack f l state

Parameters:
    f : 'T -> 'State -> 'State
    l : DList<'T>
    state : 'State

Returns: 'State

Fold walks the DList using constant stack space.

f : 'T -> 'State -> 'State
l : DList<'T>
state : 'State
Returns: 'State

DList.head l

Full Usage: DList.head l

Parameters:
Returns: 'T
Modifiers: inline
Type parameters: 'T

O(log n). Returns the first element.

l : DList<'T>
Returns: 'T

DList.isEmpty l

Full Usage: DList.isEmpty l

Parameters:
Returns: bool
Modifiers: inline
Type parameters: 'T

O(1). Returns true if the DList has no elements.

l : DList<'T>
Returns: bool

DList.iter action source

Full Usage: DList.iter action source

Parameters:
    action : 'T -> unit
    source : DList<'T>

Iterates over each element of the list.

action : 'T -> unit
source : DList<'T>

DList.length l

Full Usage: DList.length l

Parameters:
Returns: int
Modifiers: inline
Type parameters: 'T

O(1). Returns the count of elememts.

l : DList<'T>
Returns: int

DList.map f x

Full Usage: DList.map f x

Parameters:
    f : 'a -> 'b
    x : DList<'a>

Returns: DList<'b>
Modifiers: inline
f : 'a -> 'b
x : DList<'a>
Returns: DList<'b>

DList.ofSeq s

Full Usage: DList.ofSeq s

Parameters:
    s : 'T seq

Returns: DList<'T>

Returns a DList of the seq.

s : 'T seq
Returns: DList<'T>

DList.pairwise source

Full Usage: DList.pairwise source

Parameters:
Returns: DList<'T * 'T>
source : DList<'T>
Returns: DList<'T * 'T>

DList.singleton x

Full Usage: DList.singleton x

Parameters:
    x : 'a

Returns: DList<'a>

O(1). Returns DList of one elements.

x : 'a
Returns: DList<'a>

DList.tail l

Full Usage: DList.tail l

Parameters:
Returns: DList<'T>
Modifiers: inline
Type parameters: 'T

O(log n). Returns a new DList of the elements trailing the first element.

l : DList<'T>
Returns: DList<'T>

DList.toArray source

Full Usage: DList.toArray source

Parameters:
Returns: 'T[]

Returns an array of the DList elements.

source : DList<'T>
Returns: 'T[]

DList.toList source

Full Usage: DList.toList source

Parameters:
Returns: 'T list

Returns a list of the DList elements.

source : DList<'T>
Returns: 'T list

DList.toSeq l

Full Usage: DList.toSeq l

Parameters:
Returns: 'T seq
Modifiers: inline
Type parameters: 'T

Returns a seq of the DList elements.

l : DList<'T>
Returns: 'T seq

DList.tryHead l

Full Usage: DList.tryHead l

Parameters:
Returns: 'T option
Modifiers: inline
Type parameters: 'T

O(log n). Returns option first element.

l : DList<'T>
Returns: 'T option

DList.tryTail l

Full Usage: DList.tryTail l

Parameters:
Returns: DList<'T> option
Modifiers: inline
Type parameters: 'T

O(log n). Returns option DList of the elements trailing the first element.

l : DList<'T>
Returns: DList<'T> option

DList.tryUncons l

Full Usage: DList.tryUncons l

Parameters:
Returns: ('T * DList<'T>) option
Modifiers: inline
Type parameters: 'T

O(log n). Returns option first element and tail.

l : DList<'T>
Returns: ('T * DList<'T>) option

DList.uncons l

Full Usage: DList.uncons l

Parameters:
Returns: 'T * DList<'T>
Modifiers: inline
Type parameters: 'T

O(log n). Returns the first element and tail.

l : DList<'T>
Returns: 'T * DList<'T>