Class monkey.stack.StringStack - leonard-thieu/monkey GitHub Wiki

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

Extends

  • Stack<String>

Constructors

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.

⚠️ **GitHub.com Fallback** ⚠️