Documentation
¶
Overview ¶
Package convx has generic helpers for converting slices, ported from taply's conv package.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MapSlice ¶
func MapSlice[From, To any](mapFunc func(From) To, from []From) []To
MapSlice converts a slice with mapFunc; a nil slice stays nil.
func MapSliceWithError ¶
MapSliceWithError converts a slice with mapFunc and stops at the first error; a nil slice stays nil.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.