Header menu logo B2R2

UniqueQueue<'T> Type

A queue that only stores unique elements.

Constructors

Constructor Description

UniqueQueue()

Full Usage: UniqueQueue()

Returns: UniqueQueue<'T>
Returns: UniqueQueue<'T>

Instance members

Instance member Description

this.Clear

Full Usage: this.Clear

Clear the queue.

this.Count

Full Usage: this.Count

Returns: int

Get the number of elements in the queue.

Returns: int

this.Dequeue

Full Usage: this.Dequeue

Returns: 'T

Dequeue an element. If the element is not in the queue, it raises an exception.

Returns: 'T

this.Enqueue

Full Usage: this.Enqueue

Parameters:
    x : 'T

Enqueue an element only if it is not already in the queue.

x : 'T

this.IsEmpty

Full Usage: this.IsEmpty

Returns: bool

Check if the queue is empty.

Returns: bool

this.TryDequeue

Full Usage: this.TryDequeue

Parameters:
    result : byref<'T>

Returns: bool

Try to dequeue an element.

result : byref<'T>
Returns: bool

Type something to start searching.