Documentation ¶ Index ¶ func Filter[T any](slice []T, filter filterFn[T]) []T func ForEach[T any](slice []T, fn ForEachFn[T]) func From[T any](length int, fn fromFn[T]) []T func Map[T any, R any](slice []T, mapper mapperFn[T, R]) []R func Reduce[T any, R any](slice []T, reducer reduceFn[T, R], initial R) R type ForEachFn Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Filter ¶ func Filter[T any](slice []T, filter filterFn[T]) []T func ForEach ¶ func ForEach[T any]( slice []T, fn ForEachFn[T], ) func From ¶ func From[T any]( length int, fn fromFn[T], ) []T func Map ¶ func Map[T any, R any](slice []T, mapper mapperFn[T, R]) []R func Reduce ¶ func Reduce[T any, R any]( slice []T, reducer reduceFn[T, R], initial R, ) R Types ¶ type ForEachFn ¶ type ForEachFn[T any] func(each *T, index int) Source Files ¶ View all Source files filter.go for_each.go from.go map.go reduce.go Click to show internal directories. Click to hide internal directories.