Nemerle Documentation

Heap Members

Heap overview

Public Instance Constructors

Heap Overloaded. Initializes a new instance of the Heap class.

Public Instance Properties

Count Returns number of elements in the heap.
CurrentCapacity Returns the number of elements that this heap can store without the need to grow.
IsEmpty Checks if the heap is empty.

Public Instance Methods

Equals (inherited from Object)  
ExtractFirst Returns the first (with maximal priority) element from the heap, removing it. Throws EmptyHeap exception.
Fold Folds this heap's elements using the specified function and an initial value.
GetHashCode (inherited from Object)  
GetType (inherited from Object)  
Insert Inserts a new element into the heap.
Iter Calls the specified function for all elements of this heap.
Map Creates new heap of elements of type 'b. New heap is totally independent, i.e. any changes in original heap do not influence the second one and vice versa.
Top Returns the first (with maximal priority) element from the heap without removing it. Throws EmptyHeap exception.
ToString (inherited from Object)  

Protected Instance Methods

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

See Also

Heap Class | Nemerle.Collections Namespace