combine

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2025 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ApplyToResult

type ApplyToResult[Out, T any] struct {
	// contains filtered or unexported fields
}

func Chain

func Chain[Out, T any](result result.Result[T]) ApplyToResult[Out, T]

func (ApplyToResult[O, T]) AndThen

func (a ApplyToResult[O, T]) AndThen(fn func(T) result.Result[O]) result.Result[O]

func (ApplyToResult[O, T]) Map

func (a ApplyToResult[O, T]) Map(fn func(T) O) result.Result[O]

type ApplyToResult2

type ApplyToResult2[O1, O2, T any] struct {
	// contains filtered or unexported fields
}

func Chain2

func Chain2[Out2, Out1, T any](result result.Result[T]) ApplyToResult2[Out1, Out2, T]

func (ApplyToResult2[O1, O2, T]) AndThen

func (a ApplyToResult2[O1, O2, T]) AndThen(fn func(T) result.Result[O1]) ApplyToResult[O2, O1]

func (ApplyToResult2[O1, O2, T]) Map

func (a ApplyToResult2[O1, O2, T]) Map(fn func(T) O1) ApplyToResult[O2, O1]

type ApplyToResult3

type ApplyToResult3[O1, O2, O3, T any] struct {
	// contains filtered or unexported fields
}

func Chain3

func Chain3[Out3, Out2, Out1, T any](result result.Result[T]) ApplyToResult3[Out1, Out2, Out3, T]

func (ApplyToResult3[O1, O2, O3, T]) AndThen

func (a ApplyToResult3[O1, O2, O3, T]) AndThen(fn func(T) result.Result[O1]) ApplyToResult2[O3, O2, O1]

func (ApplyToResult3[O1, O2, O3, T]) Map

func (a ApplyToResult3[O1, O2, O3, T]) Map(fn func(T) O1) ApplyToResult2[O3, O2, O1]

type ApplyToResult4

type ApplyToResult4[O1, O2, O3, O4, T any] struct {
	// contains filtered or unexported fields
}

func Chain4

func Chain4[Out4, Out3, Out2, Out1, T any](result result.Result[T]) ApplyToResult4[Out1, Out2, Out3, Out4, T]

func (ApplyToResult4[O1, O2, O3, O4, T]) AndThen

func (a ApplyToResult4[O1, O2, O3, O4, T]) AndThen(fn func(T) result.Result[O1]) ApplyToResult3[O4, O3, O2, O1]

func (ApplyToResult4[O1, O2, O3, O4, T]) Map

func (a ApplyToResult4[O1, O2, O3, O4, T]) Map(fn func(T) O1) ApplyToResult3[O4, O3, O2, O1]

type ApplyToResult5

type ApplyToResult5[O1, O2, O3, O4, O5, T any] struct {
	// contains filtered or unexported fields
}

func Chain5

func Chain5[Out5, Out4, Out3, Out2, Out1, T any](result result.Result[T]) ApplyToResult5[Out1, Out2, Out3, Out4, Out5, T]

func (ApplyToResult5[O1, O2, O3, O4, O5, T]) AndThen

func (a ApplyToResult5[O1, O2, O3, O4, O5, T]) AndThen(fn func(T) result.Result[O1]) ApplyToResult4[O5, O4, O3, O2, O1]

func (ApplyToResult5[O1, O2, O3, O4, O5, T]) Map

func (a ApplyToResult5[O1, O2, O3, O4, O5, T]) Map(fn func(T) O1) ApplyToResult4[O5, O4, O3, O2, O1]

Jump to

Keyboard shortcuts

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