Documentation ¶
Index ¶
- func Chunks[S ~[]E, E any](s S, n int) []S
- func CountFunc[S ~[]E, E any](s S, f func(e E) bool) int
- func Filter[S ~[]E, E any](s []E, f func(E) bool) []E
- func FilterInplace[S ~[]E, E any](s S, f func(E) bool) []E
- func FlatMap[S ~[]E1, E1, E2 any](s S, f func(s E1) []E2) []E2
- func Map[S ~[]E1, E1, E2 any](s S, f func(s E1) E2) []E2
- func Repeat[E any](e E, n int) []E
- func Sum[S ~[]E, E constraints.Integer | constraints.Float](s S) E
- func TakeWhile[S ~[]E, E any](s S, f func(s E) bool) S
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FilterInplace ¶
func Sum ¶
func Sum[S ~[]E, E constraints.Integer | constraints.Float](s S) E
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.