Documentation ¶ Index ¶ type Slice func (s *Slice[T]) Clone() *Slice[T] func (s *Slice[T]) Filter(fn func(T) bool) *Slice[T] func (s *Slice[T]) Find(fn func(T) bool) (res T, ok bool) func (s *Slice[T]) Len() int func (s *Slice[T]) Pop() (res T) func (s *Slice[T]) Push(v T) func (s *Slice[T]) Traverse(fn func(int, T)) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Slice ¶ type Slice[T any] []T func (*Slice[T]) Clone ¶ func (s *Slice[T]) Clone() *Slice[T] func (*Slice[T]) Filter ¶ func (s *Slice[T]) Filter(fn func(T) bool) *Slice[T] func (*Slice[T]) Find ¶ func (s *Slice[T]) Find(fn func(T) bool) (res T, ok bool) func (*Slice[T]) Len ¶ func (s *Slice[T]) Len() int func (*Slice[T]) Pop ¶ func (s *Slice[T]) Pop() (res T) func (*Slice[T]) Push ¶ func (s *Slice[T]) Push(v T) func (*Slice[T]) Traverse ¶ func (s *Slice[T]) Traverse(fn func(int, T)) Source Files ¶ View all Source files slices.go Click to show internal directories. Click to hide internal directories.