Versions in this module Expand all Collapse all v2 v2.0.0 Mar 25, 2022 Changes in this version + func GroupBy(slice Slice[T], f func(T) K) map[K]Slice[T] + func Map(slice Slice[T], f func(T) R) []R + type Slice []T + func New() Slice[T] + func Of(values ...T) Slice[T] + func Zip(slices ...[]T) []Slice[T] + func (slice Slice[T]) All(f func(T) bool) bool + func (slice Slice[T]) Any(f func(T) bool) bool + func (slice Slice[T]) BinarySearch(value T, f func(T, T) int) int + func (slice Slice[T]) Chunk(size int) []Slice[T] + func (slice Slice[T]) Clone() Slice[T] + func (slice Slice[T]) Count(f func(T) bool) int + func (slice Slice[T]) Filter(f func(T) bool) Slice[T] + func (slice Slice[T]) FilterIndex(f func(int) bool) Slice[T] + func (slice Slice[T]) FirstIndexOf(f func(T) bool) int + func (slice Slice[T]) FirstOf(f func(T) bool) (r T) + func (slice Slice[T]) Foreach(f func(T)) + func (slice Slice[T]) JoinToString(sep string) string + func (slice Slice[T]) LastIndexOf(f func(T) bool) int + func (slice Slice[T]) LastOf(f func(T) bool) (r T) + func (slice Slice[T]) Map(f func(int, T) T) Slice[T] + func (slice Slice[T]) Max(f func(T, T) int) (r T) + func (slice Slice[T]) Min(f func(T, T) int) (r T) + func (slice Slice[T]) Random() T + func (slice Slice[T]) Reduce(f func(T, T) T, initial T) T + func (slice Slice[T]) Reverse() Slice[T] + func (slice Slice[T]) Shuffle() Slice[T] + func (slice Slice[T]) Sort(f func(T, T) int) Slice[T]