Documentation
¶
Index ¶
- type LinkedList
- func (d *LinkedList) Append(element any) *LinkedList
- func (d *LinkedList) AppendLeft(element any) *LinkedList
- func (d LinkedList) At(index int) (value any, err error)
- func (d *LinkedList) Clear() *LinkedList
- func (d LinkedList) Concat(another LinkedList) LinkedList
- func (d LinkedList) Copy() LinkedList
- func (d LinkedList) Count(element any) (count int)
- func (d LinkedList) Empty() bool
- func (d LinkedList) Equal(another LinkedList) bool
- func (d LinkedList) Every(condition func(any) bool) bool
- func (d *LinkedList) Extend(another *LinkedList) *LinkedList
- func (d *LinkedList) ExtendLeft(another *LinkedList) *LinkedList
- func (d *LinkedList) Fill(element any, area ...int) *LinkedList
- func (d LinkedList) Filter(condition func(any) bool) LinkedList
- func (d LinkedList) Find(by func(any) bool) (element any, found bool)
- func (d LinkedList) FindIndex(by func(any) bool) (index int)
- func (l LinkedList) FindIndexes(by func(any) bool, counts ...int) (indexes []int)
- func (d LinkedList) FindLast(by func(any) bool) (element any, found bool)
- func (d LinkedList) FindLastIndex(by func(any) bool) (index int)
- func (l LinkedList) FindLastIndexes(by func(any) bool, counts ...int) (indexes []int)
- func (l LinkedList) FindLasts(by func(any) bool, counts ...int) (elements []any)
- func (l LinkedList) Finds(by func(any) bool, counts ...int) (elements []any)
- func (d *LinkedList) ForEach(action func(any) any) *LinkedList
- func (d LinkedList) Head() (element any, err error)
- func (d LinkedList) Includes(element any) bool
- func (d LinkedList) IndexOf(element any) (index int)
- func (d *LinkedList) Insert(index int, element any) *LinkedList
- func (d LinkedList) LastIndexOf(element any) (index int)
- func (d LinkedList) Len() int
- func (d LinkedList) Map(handler func(any) any) LinkedList
- func (l LinkedList) MarshalJSON() ([]byte, error)
- func (d *LinkedList) Pop() (element any, err error)
- func (d *LinkedList) PopLeft() (element any, err error)
- func (d LinkedList) Reduce(handler func(any, any) any, initial ...any) (result any, err error)
- func (d LinkedList) ReduceRight(handler func(any, any) any, initial ...any) (result any, err error)
- func (d *LinkedList) Remove(element any, counts ...int) *LinkedList
- func (d *LinkedList) RemoveByIndex(index int) (element any, err error)
- func (d *LinkedList) RemoveIf(condition func(any) bool, counts ...int) LinkedList
- func (d *LinkedList) RemoveRight(element any, counts ...int) *LinkedList
- func (d *LinkedList) RemoveRightIf(condition func(any) bool, counts ...int) LinkedList
- func (d *LinkedList) Replace(oldElement, newElement any, counts ...int) *LinkedList
- func (d *LinkedList) ReplaceIf(condition func(any) bool, newElement any, counts ...int) LinkedList
- func (d *LinkedList) ReplaceRight(oldElement, newElement any, counts ...int) *LinkedList
- func (d *LinkedList) ReplaceRightIf(condition func(any) bool, newElement any, counts ...int) LinkedList
- func (d *LinkedList) Reverse() *LinkedList
- func (d *LinkedList) Rotate(steps ...int) *LinkedList
- func (d *LinkedList) Set(index int, element any) (err error)
- func (d LinkedList) Slice(args ...int) LinkedList
- func (d LinkedList) Some(condition func(any) bool) bool
- func (d *LinkedList) Splice(start, deleteCount int, items ...any) LinkedList
- func (l LinkedList) String() string
- func (d LinkedList) Tail() (element any, err error)
- func (d LinkedList) ToArray() []any
- func (d LinkedList) ToReversed() LinkedList
- func (d LinkedList) ToSpliced(start, deleteCount int, items ...any) LinkedList
- func (l *LinkedList) UnmarshalJSON(data []byte) (err error)
- func (d LinkedList) With(index int, value any) LinkedList
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 NewLinkedList ¶
func NewLinkedList(elements ...any) *LinkedList
func (*LinkedList) Append ¶
func (d *LinkedList) Append(element any) *LinkedList
func (*LinkedList) AppendLeft ¶
func (d *LinkedList) AppendLeft(element any) *LinkedList
func (*LinkedList) Clear ¶
func (d *LinkedList) Clear() *LinkedList
func (LinkedList) Concat ¶
func (d LinkedList) Concat(another LinkedList) LinkedList
func (LinkedList) Copy ¶
func (d LinkedList) Copy() LinkedList
func (LinkedList) Count ¶
func (d LinkedList) Count(element any) (count int)
func (LinkedList) Empty ¶
func (d LinkedList) Empty() bool
func (LinkedList) Equal ¶
func (d LinkedList) Equal(another LinkedList) bool
func (*LinkedList) Extend ¶
func (d *LinkedList) Extend(another *LinkedList) *LinkedList
func (*LinkedList) ExtendLeft ¶
func (d *LinkedList) ExtendLeft(another *LinkedList) *LinkedList
func (*LinkedList) Fill ¶
func (d *LinkedList) Fill(element any, area ...int) *LinkedList
func (LinkedList) Filter ¶
func (d LinkedList) Filter(condition func(any) bool) LinkedList
func (LinkedList) FindIndexes ¶
func (l LinkedList) FindIndexes(by func(any) bool, counts ...int) (indexes []int)
func (LinkedList) FindLast ¶
func (d LinkedList) FindLast(by func(any) bool) (element any, found bool)
func (LinkedList) FindLastIndex ¶
func (d LinkedList) FindLastIndex(by func(any) bool) (index int)
func (LinkedList) FindLastIndexes ¶
func (l LinkedList) FindLastIndexes(by func(any) bool, counts ...int) (indexes []int)
func (LinkedList) FindLasts ¶
func (l LinkedList) FindLasts(by func(any) bool, counts ...int) (elements []any)
func (LinkedList) Finds ¶
func (l LinkedList) Finds(by func(any) bool, counts ...int) (elements []any)
func (*LinkedList) ForEach ¶
func (d *LinkedList) ForEach(action func(any) any) *LinkedList
func (LinkedList) Head ¶
func (d LinkedList) Head() (element any, err error)
func (LinkedList) Includes ¶
func (d LinkedList) Includes(element any) bool
func (LinkedList) IndexOf ¶
func (d LinkedList) IndexOf(element any) (index int)
func (*LinkedList) Insert ¶
func (d *LinkedList) Insert(index int, element any) *LinkedList
func (LinkedList) LastIndexOf ¶
func (d LinkedList) LastIndexOf(element any) (index int)
func (LinkedList) Len ¶
func (d LinkedList) Len() int
func (LinkedList) Map ¶
func (d LinkedList) Map(handler func(any) any) LinkedList
func (LinkedList) MarshalJSON ¶
func (l LinkedList) MarshalJSON() ([]byte, error)
func (*LinkedList) Pop ¶
func (d *LinkedList) Pop() (element any, err error)
func (*LinkedList) PopLeft ¶
func (d *LinkedList) PopLeft() (element any, err error)
func (LinkedList) ReduceRight ¶
func (*LinkedList) Remove ¶
func (d *LinkedList) Remove(element any, counts ...int) *LinkedList
func (*LinkedList) RemoveByIndex ¶
func (d *LinkedList) RemoveByIndex(index int) (element any, err error)
func (*LinkedList) RemoveIf ¶
func (d *LinkedList) RemoveIf(condition func(any) bool, counts ...int) LinkedList
func (*LinkedList) RemoveRight ¶
func (d *LinkedList) RemoveRight(element any, counts ...int) *LinkedList
func (*LinkedList) RemoveRightIf ¶
func (d *LinkedList) RemoveRightIf(condition func(any) bool, counts ...int) LinkedList
func (*LinkedList) Replace ¶
func (d *LinkedList) Replace(oldElement, newElement any, counts ...int) *LinkedList
func (*LinkedList) ReplaceIf ¶
func (d *LinkedList) ReplaceIf(condition func(any) bool, newElement any, counts ...int) LinkedList
func (*LinkedList) ReplaceRight ¶
func (d *LinkedList) ReplaceRight(oldElement, newElement any, counts ...int) *LinkedList
func (*LinkedList) ReplaceRightIf ¶
func (d *LinkedList) ReplaceRightIf(condition func(any) bool, newElement any, counts ...int) LinkedList
func (*LinkedList) Reverse ¶
func (d *LinkedList) Reverse() *LinkedList
func (*LinkedList) Rotate ¶
func (d *LinkedList) Rotate(steps ...int) *LinkedList
func (LinkedList) Slice ¶
func (d LinkedList) Slice(args ...int) LinkedList
func (*LinkedList) Splice ¶
func (d *LinkedList) Splice(start, deleteCount int, items ...any) LinkedList
func (LinkedList) String ¶
func (l LinkedList) String() string
func (LinkedList) Tail ¶
func (d LinkedList) Tail() (element any, err error)
func (LinkedList) ToArray ¶
func (d LinkedList) ToArray() []any
func (LinkedList) ToReversed ¶
func (d LinkedList) ToReversed() LinkedList
func (LinkedList) ToSpliced ¶
func (d LinkedList) ToSpliced(start, deleteCount int, items ...any) LinkedList
func (*LinkedList) UnmarshalJSON ¶
func (l *LinkedList) UnmarshalJSON(data []byte) (err error)
func (LinkedList) With ¶
func (d LinkedList) With(index int, value any) LinkedList
Click to show internal directories.
Click to hide internal directories.