fsprojects/FSharpx.Collections


RealTimeQueue

Namespace: FSharpx.Collections.Experimental

Nested types and modules

TypeDescription
RealTimeQueue<'T>

Functions and values

Function or valueDescription
empty
Signature: RealTimeQueue<'T>
Type parameters: 'T

O(1). Returns queue of no elements.

exec queue
Signature: queue:RealTimeQueue<'?12596> -> RealTimeQueue<'?12596>
Type parameters: '?12596
head queue
Signature: queue:RealTimeQueue<'?12600> -> '?12600
Type parameters: '?12600

O(1), worst case. Returns the first element.

isEmpty queue
Signature: queue:RealTimeQueue<'?12592> -> bool
Type parameters: '?12592

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

rotate queue
Signature: queue:RealTimeQueue<'?12594> -> LazyList<'?12594>
Type parameters: '?12594
snoc x queue
Signature: x:'?12598 -> queue:RealTimeQueue<'?12598> -> RealTimeQueue<'?12598>
Type parameters: '?12598

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

tail queue
Signature: queue:RealTimeQueue<'?12604> -> RealTimeQueue<'?12604>
Type parameters: '?12604

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

tryGetHead queue
Signature: queue:RealTimeQueue<'?12602> -> '?12602 option
Type parameters: '?12602

O(1), worst case. Returns option first element.

tryGetTail queue
Signature: queue:RealTimeQueue<'?12606> -> RealTimeQueue<'?12606> option
Type parameters: '?12606

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

Fork me on GitHub