Overview

Immutable version of a stack: first in, last out.

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
  • Mapped to:

Properties


Count

Returns the nr of items in this stack.

property Count: Int32 read;
var Count: Int32 { get{} }
ReadOnly Property Count() As Int32

Instance Methods


Contains

Returns true if this list contains aItem.

method Contains(Item: T): Boolean
func Contains(_ Item: T) -> Boolean
Function Contains(Item As T) As Boolean

Parameters:

  • Item:

MutableVersion

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

Gets the next item.


ToArray

Saves this stack as array.

method ToArray: array of T
Function ToArray() As T()