package
Version:
v0.5.0
Opens a new window with list of versions in this module.
Published: Jun 25, 2022
License: MIT
Opens a new window with license information.
Imports: 0
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
func AndThen[T any, V any](value *T, f func(T) V) *V
AndThen applies the given function if the passed value is non-nil and returns `nil` otherwise.
func Map[T any, V any](values []T, f func(T) V) []V
Map is a functional operator to map all values of a slice to a different type.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.