Documentation ¶ Overview ¶ Package fold has functions to aggregate/reduce elements in slices TODO indexed TODO map Index ¶ func Slice[T any, U any](s []T, i U, f func(U, T) U) U Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Slice ¶ func Slice[T any, U any](s []T, i U, f func(U, T) U) U Slice incrementally combines a seed value and then values returned by a function applied to the slice elements, reducing the slice down to a single value, which is returned Types ¶ This section is empty. Source Files ¶ View all Source files fold.go Click to show internal directories. Click to hide internal directories.