Nemerle Documentation

Stack Members

Stack overview

Public Instance Constructors

Stack Constructor Initializes a new instance of the Stack class.

Public Instance Properties

Count Returns the height of the stack.
Height An alias for `Count'.
IsEmpty Returns `true' iff the stack is empty.
Length An alias for `Count'.
Top When read -- peeks at the object on the top of the stack. When written -- replaces the topmost element with specified value (there has to be one).

Public Instance Methods

Add Alias for Push.
Clear Clears the contents of the stack.
Clone Creates a shallow copy of this stack
Contains See List.Member.
Equals (inherited from Object)  
Exists See List.Exists.
Filter See List.Filter.
First Same as Peek, but does not throw an exception -- instead it returns an optional result.
Fold See List.FoldLeft.
ForAll See List.ForAll.
GetEnumerator Returns the enumerator for this stack's contents, top of the stack first.
GetHashCode (inherited from Object)  
GetType (inherited from Object)  
Iter See List.Iter.
Map See List.Map.
Partition See List.Partition.
Peek Peeks at the object on the top of the stack.
Pop Pops an object off the stack top.
Push Pushes an object to the top of the stack
Remove See List.Remove.
ToString (inherited from Object)  

Protected Instance Methods

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

See Also

Stack Class | Nemerle.Collections Namespace