FSharpx.Collections


HoodMelvilleQueue<'T> Type

Constructors

Constructor Description

HoodMelvilleQueue(frontLength, front, state, rBackLength, rBack)

Full Usage: HoodMelvilleQueue(frontLength, front, state, rBackLength, rBack)

Parameters:
    frontLength : int
    front : 'T list
    state : RotationState<'T>
    rBackLength : int
    rBack : 'T list

Returns: HoodMelvilleQueue<'T>
frontLength : int
front : 'T list
state : RotationState<'T>
rBackLength : int
rBack : 'T list
Returns: HoodMelvilleQueue<'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.Snoc(x)

Full Usage: this.Snoc(x)

Parameters:
    x : 'T

Returns: HoodMelvilleQueue<'T>

returns a new queue with the element added to the end

x : 'T
Returns: HoodMelvilleQueue<'T>

this.Tail

Full Usage: this.Tail

Returns: HoodMelvilleQueue<'T>

returns a new queue of the elements trailing the first element

Returns: HoodMelvilleQueue<'T>

this.TryGetHead

Full Usage: this.TryGetHead

Returns: 'T option

returns option first element

Returns: 'T option

this.TryGetTail

Full Usage: this.TryGetTail

Returns: HoodMelvilleQueue<'T> option

returns option queue of the elements trailing the first element

Returns: HoodMelvilleQueue<'T> option

this.TryUncons

Full Usage: this.TryUncons

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

returns option first element and tail

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

this.Uncons

Full Usage: this.Uncons

Returns: 'T * HoodMelvilleQueue<'T>

returns the first element and tail

Returns: 'T * HoodMelvilleQueue<'T>