builder

package
v2.1.22 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ComposeLensPrism

func ComposeLensPrism[S, A, B any](r Prism[A, B]) func(Lens[S, A]) Builder[S, B]

Types

type Builder

type Builder[S, A any] struct {
	GetOption func(S) Option[A]

	Set func(A) Endomorphism[S]
	// contains filtered or unexported fields
}

func MakeBuilder

func MakeBuilder[S, A any](get func(S) Option[A], set func(A) Endomorphism[S], name string) Builder[S, A]

type Endomorphism

type Endomorphism[A any] = endomorphism.Endomorphism[A]

type Kleisli

type Kleisli[S, A, B any] = func(A) Builder[S, B]

type Lens

type Lens[S, A any] = lens.Lens[S, A]

type Operator

type Operator[S, A, B any] = Kleisli[S, Builder[S, A], B]

type Option

type Option[A any] = option.Option[A]

type Prism

type Prism[S, A any] = prism.Prism[S, A]

Jump to

Keyboard shortcuts

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