Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrEmpty = errors.New("empty stack")
Functions ¶
Types ¶
type Cell ¶
type Cell struct {
// contains filtered or unexported fields
}
func (*Cell) DeleteAfter ¶
type LinkedList ¶
type LinkedList struct {
// contains filtered or unexported fields
}
func MakeLinkedList ¶
func MakeLinkedList() LinkedList
func (*LinkedList) IsEmpty ¶
func (stack *LinkedList) IsEmpty() bool
func (*LinkedList) Length ¶
func (list *LinkedList) Length() int
func (*LinkedList) Pop ¶
func (stack *LinkedList) Pop() int
Pop an item off of the list (from right after the sentinel).
func (*LinkedList) Push ¶
func (stack *LinkedList) Push(value int)
Push an item onto the top of the list right aftr the sentinel.
Click to show internal directories.
Click to hide internal directories.