Documentation
¶
Index ¶
- func Map[K comparable, V1 any, V2 any](m *map[K]V1, f func(V1) V2) map[K]V2
- func MapSlice[K comparable, V1 any, V2 any](m map[K]V1, f func(V1) V2) []V2
- func Slice[In any, Out any](input []In, fn func(In) Out) []Out
- func SliceCast[From, To any](in []From, convertFn func(From) To) []To
- func SlicePointer[In any, Out any](input *[]In, fn func(In) Out) []Out
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Map ¶
func Map[K comparable, V1 any, V2 any](m *map[K]V1, f func(V1) V2) map[K]V2
func MapSlice ¶
func MapSlice[K comparable, V1 any, V2 any](m map[K]V1, f func(V1) V2) []V2
func SlicePointer ¶ added in v0.0.12
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.