Documentation
¶
Overview ¶
Package stack implements a stack, which orders elements in a LIFO (last-in-first-out) manner.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Interface ¶
type Interface interface { collection.Interface // Push pushes an element into this stack. Push(val interface{}) // Pop pops the element on the top of this stack. Pop() interface{} // Peek retrieves, but does not remove, the element on the top of this stack, or return nil if this stack is empty. Peek() interface{} }
Interface is a stack, which is LIFO (last-in-first-out).
Click to show internal directories.
Click to hide internal directories.