Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Element ¶
type Element struct { Value interface{} // contains filtered or unexported fields }
Element is an element in a single linked list
type Stack ¶
type Stack struct {
// contains filtered or unexported fields
}
Stack represents a stack The zero value for Stack is an unintialized stack ought to initialize by invoking Init()
func (*Stack) Peek ¶
func (s *Stack) Peek() interface{}
Peek returns the element in the top of the s
func (*Stack) Peek2 ¶
func (s *Stack) Peek2() interface{}
Peek2 returns the element below the top of the stack
func (*Stack) ValueSlice ¶
func (s *Stack) ValueSlice() []interface{}
ValueSlice returns all elements of stack in slice
Click to show internal directories.
Click to hide internal directories.