Monkey Documentation

Class StringStack

A StringStack is a convenience class for dealing with stacks of strings. More...


Extends:
Constructors:
Methods:
  • Compare : Int ( lhs:String, rhs:String )
  • Join : String ( separator:String="" )
Inherited Properties:
Inherited Methods:

Detailed Discussion

A StringStack is a convenience class for dealing with stacks of strings.

A StringStack may also be used to efficiently concatenate a large number of strings. Simply use Push to add each string to the stack, and Join to concatenate the strings together.


Constructor Documentation

Method New ()

Creates a new empty StringStack.


Method Documentation

Method Compare : Int ( lhs:String, rhs:String )

Implements the Compare method, which allows StringStacks to be sorted using the Sort method.

Method Join : String ( separator:String="" )

Concatenates the elements of the stack and joins them together with separator.