fsprojects/FSharpx.Collections


HoodMelvilleQueue<'T>

Namespace: FSharpx.Collections.Experimental

Constructors

ConstructorDescription
new(...)
Signature: (frontLength:int * front:'T list * state:RotationState<'T> * rBackLength:int * rBack:'T list) -> HoodMelvilleQueue<'T>

CompiledName: .ctor

Instance members

Instance memberDescription
Head
Signature: 'T

returns the first element

CompiledName: get_Head

IsEmpty
Signature: bool

returns true if the queue has no elements

CompiledName: get_IsEmpty

Length
Signature: int

returns the count of elememts

CompiledName: get_Length

Snoc(x)
Signature: x:'T -> HoodMelvilleQueue<'T>

returns a new queue with the element added to the end

Tail
Signature: HoodMelvilleQueue<'T>

returns a new queue of the elements trailing the first element

CompiledName: get_Tail

TryGetHead
Signature: 'T option

returns option first element

CompiledName: get_TryGetHead

TryGetTail
Signature: HoodMelvilleQueue<'T> option

returns option queue of the elements trailing the first element

CompiledName: get_TryGetTail

TryUncons
Signature: ('T * HoodMelvilleQueue<'T>) option

returns option first element and tail

CompiledName: get_TryUncons

Uncons
Signature: 'T * HoodMelvilleQueue<'T>

returns the first element and tail

CompiledName: get_Uncons

Fork me on GitHub