ImmutableStack<T>

Overview

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

Location

  • Reference:
    • Elements.dll  .NET, .NET Standard 2.0
    • elements.jar  Cooper
    • Elements.fx  Island, ToffeeV2
    • libElements.fx  Toffee
  • Namespace: RemObjects.Elements.RTL
  • Mapped to:
    • System.Collections.Generic.Stack  .NET, .NET Standard 2.0
    • java.util.Stack  Cooper
    • RemObjects.Elements.System.Stack  Island
    • Foundation.NSArray  Toffee, ToffeeV2

Descendants

Properties


Count

Returns the nr of items in this stack.

 

property Count: Int32 read;

 

Int32 Count { get; }

 

var Count: Int32 { get{} }

 

Integer Count { __get; }

Instance Methods


Contains

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)

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()

Peek

Gets the next item.

 

method Peek: T

 

T Peek()

 

func Peek() -> T

 

T Peek()

ToArray

Saves this stack as array.

 

method ToArray: array of T

 

T[] ToArray()

 

func ToArray() -> T...

 

T[] ToArray()

Descendants