package
Version:
v1.21.1
Opens a new window with list of versions in this module.
Published: Jun 29, 2023
License: MPL-2.0
Opens a new window with license information.
Imports: 0
Opens a new window with list of imports.
Imported by: 1
Opens a new window with list of known importers.
Documentation
¶
func Filter[Elem any](src []Elem, fn func(Elem) bool) []Elem
Filter applies fn on all elements in src, producing a new slice
containing the elements for which fn returned true, preserving
the same order.
func Map[A, B any](src []A, fn func(A) B) []B
Map applies fn on all elements in src, producing a new slice
with the results, in order.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.