result

package
v2.2.21 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Operator

type Operator[S, A, B any] = func(Traversal[S, A]) Traversal[S, B]

Operator represents a function that transforms one Traversal into another. It takes a Traversal[S, A] and produces a Traversal[S, B].

func Compose

func Compose[
	S, A, B any](ab Traversal[A, B]) Operator[S, A, B]

type Result

type Result[T any] = result.Result[T]

Result represents a computation that may fail with an error.

type Traversal

type Traversal[S, A any] = T.Traversal[S, A, Result[S], Result[A]]

Traversal represents an optic that focuses on zero or more values of type A within a structure S. It's specialized for Result types, allowing traversal over successful values.

Jump to

Keyboard shortcuts

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