ext

package
v0.5.3 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2022 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