FSharpx.Collections


BatchedQueue<'T> Type

Constructors

Constructor Description

BatchedQueue(front, rBack)

Full Usage: BatchedQueue(front, rBack)

Parameters:
    front : 'T list
    rBack : 'T list

Returns: BatchedQueue<'T>
front : 'T list
rBack : 'T list
Returns: BatchedQueue<'T>

Instance members

Instance member Description

this.Head

Full Usage: this.Head

Returns: 'T

returns the first element

Returns: 'T

this.IsEmpty

Full Usage: this.IsEmpty

Returns: bool

returns true if the queue has no elements

Returns: bool

this.Length

Full Usage: this.Length

Returns: int

returns the count of elements

Returns: int

this.Rev

Full Usage: this.Rev

Returns: BatchedQueue<'T>

returns queue reversed

Returns: BatchedQueue<'T>

this.Snoc(x)

Full Usage: this.Snoc(x)

Parameters:
    x : 'T

Returns: BatchedQueue<'T>

returns a new queue with the element added to the end

x : 'T
Returns: BatchedQueue<'T>

this.Tail

Full Usage: this.Tail

Returns: BatchedQueue<'T>

returns a new queue of the elements trailing the first element

Returns: BatchedQueue<'T>

this.TryGetHead

Full Usage: this.TryGetHead

Returns: 'T option

returns option first element

Returns: 'T option

this.TryGetTail

Full Usage: this.TryGetTail

Returns: BatchedQueue<'T> option

returns option queue of the elements trailing the first element

Returns: BatchedQueue<'T> option

this.TryUncons

Full Usage: this.TryUncons

Returns: ('T * BatchedQueue<'T>) option

returns option first element and tail

Returns: ('T * BatchedQueue<'T>) option

this.Uncons

Full Usage: this.Uncons

Returns: 'T * BatchedQueue<'T>

returns the first element and tail

Returns: 'T * BatchedQueue<'T>