ImmutableStack<T>

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;

 

Int32 Count { get; }

 

var Count: Int32 { get{} }

 

Integer Count { __get; }

 

ReadOnly Property Count() As Int32

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)

 

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.

 

method Peek: nullable T

 

T? Peek()

 

func Peek() -> T?

 

T Peek()

 

Function Peek() As T?

ToArray

Saves this stack as array.

 

method ToArray: array of T

 

T[] ToArray()

 

func ToArray() -> T...

 

T[] ToArray()

 

Function ToArray() As T()