tuple

package
v0.0.83 Latest Latest
Warning

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

Go to latest
Published: May 26, 2024 License: CC0-1.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Tuple

type Tuple[A, B any] struct {
	// contains filtered or unexported fields
}

func Err

func Err[A any](a A, err error) Tuple[A, error]

func FromFallible

func FromFallible[A any](a A, err error) Tuple[A, error]

func Of

func Of[A, B any](a A, b B) Tuple[A, B]

func (Tuple[A, B]) Swap

func (t Tuple[A, B]) Swap() Tuple[B, A]

func (Tuple[A, B]) T1

func (t Tuple[A, B]) T1() A

func (Tuple[A, B]) T2

func (t Tuple[A, B]) T2() B

Jump to

Keyboard shortcuts

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