Versions in this module Expand all Collapse all v2 v2.0.1 Jan 15, 2025 v2.0.0 Jan 15, 2025 Changes in this version + type Iterator struct + func (iterator *Iterator[T]) Begin() + func (iterator *Iterator[T]) End() + func (iterator *Iterator[T]) First() bool + func (iterator *Iterator[T]) Index() int + func (iterator *Iterator[T]) Last() bool + func (iterator *Iterator[T]) Next() bool + func (iterator *Iterator[T]) NextTo(f func(index int, value T) bool) bool + func (iterator *Iterator[T]) Prev() bool + func (iterator *Iterator[T]) PrevTo(f func(index int, value T) bool) bool + func (iterator *Iterator[T]) Value() T + type List struct + func New[T comparable](values ...T) *List[T] + func (list *List[T]) Add(values ...T) + func (list *List[T]) All(f func(index int, value T) bool) bool + func (list *List[T]) Any(f func(index int, value T) bool) bool + func (list *List[T]) Clear() + func (list *List[T]) Contains(values ...T) bool + func (list *List[T]) Each(f func(index int, value T)) + func (list *List[T]) Empty() bool + func (list *List[T]) Find(f func(index int, value T) bool) (int, T) + func (list *List[T]) FromJSON(data []byte) error + func (list *List[T]) Get(index int) (T, bool) + func (list *List[T]) IndexOf(value T) int + func (list *List[T]) Insert(index int, values ...T) + func (list *List[T]) Iterator() *Iterator[T] + func (list *List[T]) Map(f func(index int, value T) T) *List[T] + func (list *List[T]) MarshalJSON() ([]byte, error) + func (list *List[T]) Remove(index int) + func (list *List[T]) Select(f func(index int, value T) bool) *List[T] + func (list *List[T]) Set(index int, value T) + func (list *List[T]) Size() int + func (list *List[T]) Sort(comparator utils.Comparator[T]) + func (list *List[T]) String() string + func (list *List[T]) Swap(i, j int) + func (list *List[T]) ToJSON() ([]byte, error) + func (list *List[T]) UnmarshalJSON(bytes []byte) error + func (list *List[T]) Values() []T