ext

package
v0.6.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 7, 2024 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AndThen

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

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.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL