Stack<T>
Overview
Stack implementation, where items first added, are popped last.
Location
-
Reference:
- Elements.dll .NET, .NET Core 6.0, .NET Standard 2.0
- elements.jar Cooper
- Elements.fx Island, ToffeeV2
- libElements.fx Toffee
- Namespace: RemObjects.Elements.RTL
- Platforms: .NET, .NET Core 6.0, .NET Standard 2.0, Cooper, Island, Toffee, ToffeeV2
-
Mapped to:
- Stack
.NET, .NET Core 6.0, .NET Standard 2.0, Cooper - RemObjects.Elements.System.Stack<T> Island
- NSMutableArray Toffee, ToffeeV2
- Stack
- Ancestry: ImmutableStack<T> | Stack<T>
constructor Toffee
init($New )
Parameters:
- :
Clear Cooper, Island, Toffee, ToffeeV2
Clears this stack.
method Clear
void Clear()
func Clear()
void Clear()
Sub Clear()
Clear .NET, .NET Core 6.0, .NET Standard 2.0
method Clear
void Clear()
func Clear()
Sub Clear()
Contains (T): Boolean (declared in ImmutableStack<T>) Cooper, Island, Toffee, ToffeeV2
Returns true if this list contains aItem.
method Contains(Item: T): Boolean
Boolean Contains(T Item)
func Contains(_ Item: T) -> Boolean
Boolean Contains(T Item)
Function Contains(Item As T) As Boolean
Parameters:
- Item:
Contains (T): Boolean (declared in ImmutableStack<T>) .NET, .NET Core 6.0, .NET Standard 2.0
method Contains(Item: T): Boolean
Boolean Contains(T Item)
func Contains(_ Item: T) -> Boolean
Function Contains(Item As T) As Boolean
Parameters:
- Item:
Count (declared in ImmutableStack<T>)
Returns the nr of items in this stack.
property Count: Int32 read;
Int32 Count { get; }
var Count: Int32 { get{} }
Integer Count { __get; }
ReadOnly Property Count() As Int32
MutableVersion (declared in ImmutableStack<T>) Cooper, Island, Toffee, ToffeeV2
Creates a copy and returns it as mutable.
method MutableVersion: Stack<T>
Stack<T> MutableVersion()
func MutableVersion() -> Stack<T>
Stack<T> MutableVersion()
Function MutableVersion() As Stack<T>
MutableVersion (declared in ImmutableStack<T>) .NET, .NET Core 6.0, .NET Standard 2.0
method MutableVersion: Stack<T>
Stack<T> MutableVersion()
func MutableVersion() -> Stack<T>
Function MutableVersion() As Stack<T>
Peek (declared in ImmutableStack<T>) Cooper, Island, Toffee, ToffeeV2
Gets the next item.
method Peek: nullable T
T? Peek()
func Peek() -> T?
T Peek()
Function Peek() As T?
Peek (declared in ImmutableStack<T>) .NET, .NET Core 6.0, .NET Standard 2.0
method Peek: nullable T
T? Peek()
func Peek() -> T?
Function Peek() As T?
Pop Cooper, Island, Toffee, ToffeeV2
Removes the next item from the stack, or fails if none is available.
method Pop: T
T Pop()
func Pop() -> T
T Pop()
Function Pop() As T
Pop .NET, .NET Core 6.0, .NET Standard 2.0
method Pop: T
T Pop()
func Pop() -> T
Function Pop() As T
Push (T) Cooper, Island, Toffee, ToffeeV2
Push a new value on this stack.
method Push(Item: T)
void Push(T Item)
func Push(_ Item: T)
void Push(T Item)
Sub Push(Item As T)
Parameters:
- Item:
Push (T) .NET, .NET Core 6.0, .NET Standard 2.0
method Push(Item: T)
void Push(T Item)
func Push(_ Item: T)
Sub Push(Item As T)
Parameters:
- Item:
ToArray (declared in ImmutableStack<T>) Cooper, Island, Toffee, ToffeeV2
Saves this stack as array.
method ToArray: array of T
T[] ToArray()
func ToArray() -> T...
T[] ToArray()
Function ToArray() As T()
ToArray (declared in ImmutableStack<T>) .NET, .NET Core 6.0, .NET Standard 2.0
method ToArray: array of T
T[] ToArray()
func ToArray() -> T...
Function ToArray() As T()
UniqueCopy (declared in ImmutableStack<T>) .NET, .NET Core 6.0, .NET Standard 2.0
method UniqueCopy: ImmutableStack<T>
ImmutableStack<T> UniqueCopy()
func UniqueCopy() -> ImmutableStack<T>
Function UniqueCopy() As ImmutableStack<T>
UniqueMutableCopy (declared in ImmutableStack<T>) .NET, .NET Core 6.0, .NET Standard 2.0
constructor Toffee
init($New )
Parameters:
- :
Clear Cooper, Island, Toffee, ToffeeV2
Clears this stack.
method Clear
void Clear()
func Clear()
void Clear()
Sub Clear()
Contains (T): Boolean (declared in ImmutableStack<T>) Cooper, Island, Toffee, ToffeeV2
Returns true if this list contains aItem.
method Contains(Item: T): Boolean
Boolean Contains(T Item)
func Contains(_ Item: T) -> Boolean
Boolean Contains(T Item)
Function Contains(Item As T) As Boolean
Parameters:
- Item:
MutableVersion (declared in ImmutableStack<T>) Cooper, Island, Toffee, ToffeeV2
Creates a copy and returns it as mutable.
method MutableVersion: Stack<T>
Stack<T> MutableVersion()
func MutableVersion() -> Stack<T>
Stack<T> MutableVersion()
Function MutableVersion() As Stack<T>
Peek (declared in ImmutableStack<T>) Cooper, Island, Toffee, ToffeeV2
Gets the next item.
method Peek: nullable T
T? Peek()
func Peek() -> T?
T Peek()
Function Peek() As T?
Pop Cooper, Island, Toffee, ToffeeV2
Removes the next item from the stack, or fails if none is available.
method Pop: T
T Pop()
func Pop() -> T
T Pop()
Function Pop() As T
Push (T) Cooper, Island, Toffee, ToffeeV2
Push a new value on this stack.
method Push(Item: T)
void Push(T Item)
func Push(_ Item: T)
void Push(T Item)
Sub Push(Item As T)
Parameters:
- Item:
ToArray (declared in ImmutableStack<T>) Cooper, Island, Toffee, ToffeeV2
Saves this stack as array.
method ToArray: array of T
T[] ToArray()
func ToArray() -> T...
T[] ToArray()
Function ToArray() As T()
Clear .NET, .NET Core 6.0, .NET Standard 2.0
method Clear
void Clear()
func Clear()
Sub Clear()
Contains (T): Boolean (declared in ImmutableStack<T>) .NET, .NET Core 6.0, .NET Standard 2.0
method Contains(Item: T): Boolean
Boolean Contains(T Item)
func Contains(_ Item: T) -> Boolean
Function Contains(Item As T) As Boolean
Parameters:
- Item:
MutableVersion (declared in ImmutableStack<T>) .NET, .NET Core 6.0, .NET Standard 2.0
method MutableVersion: Stack<T>
Stack<T> MutableVersion()
func MutableVersion() -> Stack<T>
Function MutableVersion() As Stack<T>
Peek (declared in ImmutableStack<T>) .NET, .NET Core 6.0, .NET Standard 2.0
method Peek: nullable T
T? Peek()
func Peek() -> T?
Function Peek() As T?
Pop .NET, .NET Core 6.0, .NET Standard 2.0
method Pop: T
T Pop()
func Pop() -> T
Function Pop() As T
Push (T) .NET, .NET Core 6.0, .NET Standard 2.0
method Push(Item: T)
void Push(T Item)
func Push(_ Item: T)
Sub Push(Item As T)
Parameters:
- Item:
ToArray (declared in ImmutableStack<T>) .NET, .NET Core 6.0, .NET Standard 2.0
method ToArray: array of T
T[] ToArray()
func ToArray() -> T...
Function ToArray() As T()
UniqueCopy (declared in ImmutableStack<T>) .NET, .NET Core 6.0, .NET Standard 2.0
method UniqueCopy: ImmutableStack<T>
ImmutableStack<T> UniqueCopy()
func UniqueCopy() -> ImmutableStack<T>
Function UniqueCopy() As ImmutableStack<T>
UniqueMutableCopy (declared in ImmutableStack<T>) .NET, .NET Core 6.0, .NET Standard 2.0