package
Version:
v0.0.0-...-3b69c6d
Opens a new window with list of versions in this module.
Published: Nov 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
¶
func Find[T any](array []T, predicate func(T) bool) (T, bool)
Returns the first element in the array that satisfies the predicate.
If no element satisfies the predicate, the second return value is false.
func Map[T1, T2 any](array []T1, mapper func(T1) T2) []T2
Source Files
¶
Click to show internal directories.
Click to hide internal directories.