either

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2026 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Either

type Either[L, R any] func() (*L, *R)

func BindLeft

func BindLeft[LA, LB, R any, A Either[LA, R]](either A, fn func(LA) Either[LB, R]) Either[LB, R]

func BindRight

func BindRight[L, RA, RB any, E Either[L, RA]](either E, fn func(RA) Either[L, RB]) Either[L, RB]

func Left

func Left[R, L any](left L) Either[L, R]

func MapLeft

func MapLeft[LA, LB, R any, E Either[LA, R]](either E, fn func(LA) LB) Either[LB, R]

func MapRight

func MapRight[L, RA, RB any, E Either[L, RA]](either E, fn func(RA) RB) Either[L, RB]
func Right[L, R any](right R) Either[L, R]

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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