Documentation ¶
Overview ¶
Package linkedlist provides methods for linked lists handling.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LinkedList ¶
type LinkedList struct {
// contains filtered or unexported fields
}
func (*LinkedList) Find ¶
func (l *LinkedList) Find(value interface{}) bool
Find a node by value in the linked list, return true if exists
func (*LinkedList) Insert ¶
func (l *LinkedList) Insert(d interface{})
Insert a new node at the end of linked list
func (*LinkedList) Remove ¶
func (l *LinkedList) Remove(val interface{}) bool
Remove node from list by value, returns the if it was removed
Click to show internal directories.
Click to hide internal directories.