Documentation ¶
Index ¶
- func Fold[From, To any](vs []From, initial To, f func(int, To, From) To) To
- func FoldErr[From, To any](vs []From, initial To, f func(int, To, From) (To, error)) (To, error)
- func Map[From, To any](vs []From, f func(int, From) To) []To
- func MapErr[From, To any](vs []From, f func(int, From) (To, error)) ([]To, error)
- func Sort[T constraints.Ordered](ts []T)
- func SortByField[T any, Field constraints.Ordered](ts []T, f func(T) Field)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Sort ¶
func Sort[T constraints.Ordered](ts []T)
func SortByField ¶
func SortByField[T any, Field constraints.Ordered](ts []T, f func(T) Field)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.