package
Version:
v0.6.0
Opens a new window with list of versions in this module.
Published: Apr 7, 2024
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.