Documentation
¶
Index ¶
- Variables
- type DLL
- func (l *DLL) Append(val interface{})
- func (l *DLL) AppendNode(n *Node)
- func (l *DLL) GetAt(idx int) (interface{}, error)
- func (l *DLL) GetNodeAt(idx int) (*Node, error)
- func (l *DLL) Head() (interface{}, error)
- func (l *DLL) HeadNode() (*Node, error)
- func (l *DLL) InsertAt(idx int, val interface{}) error
- func (l *DLL) InsertNodeAt(idx int, n *Node) error
- func (l *DLL) Length() int
- func (l *DLL) Prepend(val interface{})
- func (l *DLL) PrependNode(n *Node)
- func (l *DLL) Remove(val interface{}) error
- func (l *DLL) RemoveAt(idx int) error
- func (l *DLL) RemoveNode(n *Node) error
- func (l *DLL) Tail() (interface{}, error)
- func (l *DLL) TailNode() (*Node, error)
- type Node
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 DLL ¶
type DLL struct {
// contains filtered or unexported fields
}
func (*DLL) AppendNode ¶
func (*DLL) PrependNode ¶
func (*DLL) RemoveNode ¶
Click to show internal directories.
Click to hide internal directories.