package
Version:
v1.0.0-beta.95
Opens a new window with list of versions in this module.
Published: Jun 26, 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
¶
func Filter[T any](s []T, f func(T) bool) []T
returns the first element in the slice where the predicate returns true
if second argument is true the returns the last not the first
func Map[T any, S any](s []T, f func(T) S) []S
Map maps elements of a slice from T to M, returning a new slice.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.