Documentation
¶
Index ¶
- Variables
- type Node
- type SLL
- func (l *SLL) Append(val interface{})
- func (l *SLL) AppendNode(n *Node)
- func (l *SLL) GetAt(idx int) (interface{}, error)
- func (l *SLL) GetNodeAt(idx int) (*Node, error)
- func (l *SLL) Head() (interface{}, error)
- func (l *SLL) HeadNode() (*Node, error)
- func (l *SLL) InsertAt(idx int, val interface{}) error
- func (l *SLL) InsertNodeAt(idx int, n *Node) error
- func (l *SLL) Length() int
- func (l *SLL) Prepend(val interface{})
- func (l *SLL) PrependNode(n *Node)
- func (l *SLL) Remove(val interface{}) error
- func (l *SLL) RemoveAt(idx int) error
- func (l *SLL) RemoveNode(n *Node) error
- func (l *SLL) Tail() (interface{}, error)
- func (l *SLL) TailNode() (*Node, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrEmptyList = errors.New("cannot perform operation in empty list") ErrOutOfBounds = errors.New("index exceeds length of list") ErrNotInList = errors.New("value not in list") )
View Source
var (
ErrNotSet = errors.New("node not set")
)
Functions ¶
This section is empty.
Types ¶
type SLL ¶
type SLL struct {
// contains filtered or unexported fields
}
func (*SLL) AppendNode ¶
func (*SLL) PrependNode ¶
func (*SLL) RemoveNode ¶
Click to show internal directories.
Click to hide internal directories.