Documentation ¶
Overview ¶
Package functional provides functional utilities for commonly done operations.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Map ¶
Map applies the mapper function to each entry in the slice and returns a new slice with the results.
func MapFilter ¶
func MapFilter[V any, R comparable](slice []V, mapper func(entry V) R) []R
MapFilter applies the mapper function to each entry in the slice and returns a new slice with the results.
If mapper returns the default value for the R type, the result is not added to the returned slice.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.