Skip to content

DsStack

Hyomoto edited this page Dec 12, 2020 · 16 revisions
Jump To Go Back Arguments Methods Variables

DsStack( values... )

Implements: DsChain

A garbage-collected stack.

stack = new DsStack()

stack.push( "Hello!" )
show_debug_message( stack.pop() );

Arguments

Name Type Purpose
values... mixed The initial values to be pushed to the stack.

Methods

Jump To top push top pop copy is

push( values... )

Returns: N/A undefined

Name Type Purpose
values... mixed The values to be pushed onto the stack.

top( values... )

Returns: N/A undefined

Name Type Purpose
values... mixed Returns the value on top of the stack.

pop( values... )

Returns: N/A undefined

Name Type Purpose
values... mixed Removes the value on top of the stack and returns it.

copy()

Returns: DsStack

Name Type Purpose
None

Returns a copy of this DsStack.


is( type )

Returns: boolean (true or false)

Name Type Purpose
type Constructor The Constructor to compare this against.

Returns true if the provided type is DsStack.


Variables

Jump To top

No variables defined.

Clone this wiki locally