fsprojects/FSharpx.Collections


ImplicitQueue

Namespace: FSharpx.Collections.Experimental

Nested types and modules

TypeDescription
Digit<'T>
ImplicitQueue<'T>

Functions and values

Function or valueDescription
empty
Signature: ImplicitQueue<'?13323>
Type parameters: '?13323

O(1). Returns queue of no elements.

head queue
Signature: queue:ImplicitQueue<'T> -> 'T
Type parameters: 'T

O(1), amortized. Returns the first element.

isEmpty _arg1
Signature: _arg1:ImplicitQueue<'?13325> -> bool
Type parameters: '?13325

O(1). Returns true if the queue has no elements

snoc x queue
Signature: x:'?13337 -> queue:ImplicitQueue<'?13337> -> ImplicitQueue<'?13337>
Type parameters: '?13337

O(1), amortized. Returns a new queue with the element added to the end.

tail queue
Signature: queue:ImplicitQueue<'T> -> ImplicitQueue<'T>
Type parameters: 'T

O(1), amortized. Returns a new queue of the elements trailing the first element.

tryGetHead queue
Signature: queue:ImplicitQueue<'T> -> 'T option
Type parameters: 'T

O(1), amortized. Returns option first element.

tryGetTail queue
Signature: queue:ImplicitQueue<'T> -> ImplicitQueue<'T> option
Type parameters: 'T

O(1), amortized. Returns option queue of the elements trailing the first element.

Fork me on GitHub