Help us shape the future of Go! Take the 2026 Go Developer Survey

builder

package
v2.7.0 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2026 License: Apache-2.0 Imports: 4 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] = common.Lens[S, A]

type Operator

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

type Option

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

type Prism

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

Jump to

Keyboard shortcuts

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