package
Version:
v0.0.0-...-fab4c1e
Opens a new window with list of versions in this module.
Published: Dec 16, 2023
License: MIT
Opens a new window with license information.
Imports: 0
Opens a new window with list of imports.
Imported by: 2
Opens a new window with list of known importers.
Documentation
¶
Package slicex extends "golang.org/x/exp/slices".
func Map[E, T any](list []E, fn func(E) T) []T
Map transforms the elements of a slice.
func MapIf[E, T any](list []E, fn func(E) (T, bool)) []T
MapIf transforms selected elements of a slice.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.