FSharpx.Extras


ListQueue Module

Types

Type Description

Node<'T>

Queue<'T>

Functions and values

Function or value Description

dequeue queue

Full Usage: dequeue queue

Parameters:
Returns: Stm<'a>
queue : Queue<'a>
Returns: Stm<'a>

enqueue queue item

Full Usage: enqueue queue item

Parameters:
    queue : Queue<'a>
    item : 'a

Returns: Stm<unit>
queue : Queue<'a>
item : 'a
Returns: Stm<unit>

ifM p x

Full Usage: ifM p x

Parameters:
    p : bool
    x : Stm<unit>

Returns: Stm<unit>
p : bool
x : Stm<unit>
Returns: Stm<unit>

liftM f x

Full Usage: liftM f x

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

Returns: Stm<'b>
f : 'a -> 'b
x : Stm<'a>
Returns: Stm<'b>

new_queue ()

Full Usage: new_queue ()

Parameters:
    () : unit

Returns: Queue<'a>
() : unit
Returns: Queue<'a>

ofList list

Full Usage: ofList list

Parameters:
    list : 'a list

Returns: Queue<'a>
list : 'a list
Returns: Queue<'a>

toList queue

Full Usage: toList queue

Parameters:
Returns: Stm<'a list>
queue : Queue<'a>
Returns: Stm<'a list>