Nemerle Documentation

Queue Members

Queue overview

Public Instance Constructors

Queue Constructor Initializes a new instance of the Queue class.

Public Instance Properties

Count Returns the number of elements in the queue.
IsEmpty Return `true` iff the queue is empty.
Length Alias for Count.

Public Instance Methods

Add Append element to the end of the queue.
Clear Empty the queue.
Clone Create a shallow copy of the queue.
Contains Returns `true' iff the element x is a member of the queue.
Equals (inherited from Object)  
Exists Return true iff the queue contains an element that satisfies predicate f.
Filter Remove from queue every element that does not satisfy predicate f.
First Return some element from the queue, implements ICollection.First.
Fold Fold elements of the queue with supplied function and initial value.
ForAll Return `true' iff every element of the queue satisfy predicate f.
GetEnumerator Return enumerator for elements of the queue.
GetHashCode (inherited from Object)  
GetType (inherited from Object)  
Iter Call supplied function for every element of the queue.
Map Map queue to a new queue using mapping f.
Partition Partition the queue into two queues: first with elements that satisfy predicate f, second with the rest.
Peek Return the first element of the queue.
Pop Alias for Take.
Push Alias for Add.
Remove Removes element x from the queue.
Take Return the first element of the queue and remove it. Throw EmptyQueue exception if the queue is empty.
Top Alias for Peek.
ToString (inherited from Object)  
Transfer Transfer all elements of the queue q to the end of this queue.

Protected Instance Methods

Finalize (inherited from Object)  
MemberwiseClone (inherited from Object)  

See Also

Queue Class | Nemerle.Collections Namespace