Documentation ¶
Index ¶
- func Count[V any](slice []V, filter func(item V) bool) (x int)
- func Each[V any](slice []V, fn func(item V) bool)
- func Find[V any](slice []V, fn func(item V) bool) *V
- func FindCopy[V any](slice []V, fn func(item V) bool) (item V, found bool)
- func FindIndex[V any](slice []V, fn func(item V) bool) int
- func Sum[V constraints.Integer](slice []V) (x int)
- func SumCustom[V any](slice []V, fn func(item V) int) (x int)
- type List
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Sum ¶
func Sum[V constraints.Integer](slice []V) (x int)
Types ¶
Click to show internal directories.
Click to hide internal directories.