Class wwStack

A stack provides a Last In First Out list. It's based on an array of items that contains the actual items. Use `Push()` and `Pop()` to move items on and off the stack.

Custom
  wwCollection
    wwStack

Class Members

MemberDescription

Peek

Returns the last item without popping it off the stack.

o.Peek()

Pop

Pops an item off the stack by removing and returning the last item on the stack.

o.Pop()

Push

Pushes an item onto the stack.

o.Push(lvValue)

aItems[]

A one dimensional array that holds the stack items and can be accessed directly for performance if necesary.

Count

The number of items that are currently on the stack.


© West Wind Technologies, 2023 • Updated: 11/10/18
Comment or report problem with topic