iso

package
v1.0.143 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2024 License: Apache-2.0 Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Compose

func Compose[S, A, B any](ab I.Iso[A, B]) func(sa L.Lens[S, A]) L.Lens[S, B]

Compose converts a Lens to a property of `A` into a lens to a property of type `B` the transformation is done via an ISO

func FromNillable

func FromNillable[T any]() I.Iso[*T, O.Option[T]]

FromNillable converts a nillable value to an option and back

Types

This section is empty.

Jump to

Keyboard shortcuts

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