Skip to content
Dickson Law edited this page Apr 12, 2023 · 4 revisions

Classes

Stack(...)

A standard last-in-first-out data structure. See DS Stacks.

Ported Methods

Aliases

  • get(): Same as top().
  • peek(): Same as top().

New Methods

  • clone(): Return a shallow clone of the stack.
  • cloneDeep(): Same as clone(), but also making deep copies of everything in the stack.
  • copyDeep(sourceStack): Same as copy(sourceStack), but with deep copies of everything in the source.

Clone this wiki locally