Documentation
¶
Overview ¶
Package slice contains generic Slice helpers; Some of this code is sourced from https://github.com/luraim/fun (Apache v2)
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Filter ¶
Filter returns a new slice containing only the elements for which the predicate returns true
func Map ¶
func Map[From, To any](in []From, f func(From) To) []To
Map applies a function to each element of a slice and returns a new slice
func MapWithError ¶
MapWithError applies a function to each element of a slice and returns a new slice, or an error
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.