package
Version:
v1.7.7
Opens a new window with list of versions in this module.
Published: Jan 23, 2024
License: Apache-2.0
Opens a new window with license information.
Imports: 0
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package slices provides generic slice functions.
func AllFunc[S ~[]E, E any](x S, fn func(a E) bool) bool
AllFunc returns true if for all elements of a slice fn evaluates to true, false otherwise.
func AnyFunc[S ~[]E, E any](x S, fn func(a E) bool) bool
AnyFunc returns true if for at least one element of a slice fn evaluates to true, false otherwise.
func RangeFunc[S ~[]E, E any](x S, fn func(a E))
RangeFunc executes function fn on all elements of a slice.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.