Documentation ¶
Index ¶
- func Check(err error)
- func ContainsSubslice[T comparable](slice []T, subslice []T) bool
- func Count[T comparable](slice []T, comparable T) int
- func CountFunc[T any](slice []T, predicate func(T) bool) int
- func Filter[T any](slice []T, predicate func(T) bool) []T
- func SortDesc(s []int) ([]int, []int)
- func Sum(slice []int) int
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ContainsSubslice ¶
func ContainsSubslice[T comparable](slice []T, subslice []T) bool
Checks if the first slice contains a subslice that is equal to the second slice.
func Count ¶
func Count[T comparable](slice []T, comparable T) int
Counts certain numbers in an int slice.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.