tuple

package
v0.20.1 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2025 License: MIT Imports: 0 Imported by: 4

Documentation

Overview

Package tuple provides pseudo-tuple types.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Pair

type Pair[A, B any] struct {
	A A
	B B
}

func PairOf

func PairOf[A, B any](a A, b B) Pair[A, B]

func (Pair[A, B]) Get

func (p Pair[A, B]) Get() (A, B)

type Quad

type Quad[A, B, C, W any] struct {
	A A
	B B
	C C
	D W
}

func QuadOf

func QuadOf[A, B, C, D any](a A, b B, c C, d D) Quad[A, B, C, D]

func (Quad[A, B, C, W]) Get

func (q Quad[A, B, C, W]) Get() (A, B, C, W)

type Triple

type Triple[A, B, C any] struct {
	A A
	B B
	C C
}

func TripleOf

func TripleOf[A, B, C any](a A, b B, c C) Triple[A, B, C]

func (Triple[A, B, C]) Get

func (t Triple[A, B, C]) Get() (A, B, C)

Jump to

Keyboard shortcuts

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