package
Version:
v0.13.0-alpha.53
Opens a new window with list of versions in this module.
Published: Dec 24, 2024
License: MIT
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
¶
Contains returns true if the slice contains the given element.
func Filter[S ~[]T, T any](s S, f func(T) bool) []T
Filter returns a new slice containing all elements in the slice that satisfy the predicate f.
func Map[S ~[]T, T any, O any](s S, f func(T) O) []O
Map returns a new slice containing the results of applying the given function
Source Files
¶
Click to show internal directories.
Click to hide internal directories.