package
Version:
v0.68.2
Opens a new window with list of versions in this module.
Published: May 28, 2023
License: Apache-2.0
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package xslices provides some generic utilities missed from x/exp/slices.
func Filter[S ~[]E, E any](sptr *S, keep func(E) bool)
Filter performs in-place filtering of a slice.
func FindFunc[S ~[]E, E any](s S, equal func(E) bool) (r E, _ bool)
FindFunc returns the first element satisfying the predicate.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.