mapper

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2024 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Identity

func Identity[T any](t T) T

func Nil

func Nil[P interface{ *T }, T any](P) P

Types

type Mapper

type Mapper[T any] func(T) T

func IdentityIf added in v0.1.2

func IdentityIf[T any](p bool) Mapper[T]

func Sequence added in v0.1.2

func Sequence[T any](ms ...Mapper[T]) Mapper[T]

Jump to

Keyboard shortcuts

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