Documentation ¶
Index ¶
- func All[T any](l []T, pred func(T) bool) bool
- func Any[T any](l []T, pred func(T) bool) bool
- func Copy[T any](l []T) []T
- func Difference[T constraints.Ordered](l1, l2 []T) []T
- func Filter[T any](l []T, pred func(T) bool) []T
- func FilterMap[T1, T2 any](l []T1, fun func(T1) (T2, bool)) []T2
- func Insert[T constraints.Ordered](l []T, v T) ([]T, bool)
- func Intersection[T constraints.Ordered](l1, l2 []T) []T
- func Map[T1, T2 any](l []T1, mapper func(T1) T2) []T2
- func Max[T types.Number](l []T) T
- func Member[T types.Number](l []T, v T) bool
- func Min[T types.Number](l []T) T
- func Partition[T any](l []T, pred func(T) bool) ([]T, []T)
- func Remove[T constraints.Ordered](l []T, v T) ([]T, bool)
- func Sum[T types.Number](l []T) T
- func Union[T constraints.Ordered](l1, l2 []T) []T
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.