package
Version:
v0.20.1
Opens a new window with list of versions in this module.
Published: Dec 5, 2025
License: MIT
Opens a new window with license information.
Imports: 0
Opens a new window with list of imports.
Imported by: 4
Opens a new window with list of known importers.
Documentation
¶
Package tuple provides pseudo-tuple types.
type Pair[A, B any] struct {
A A
B B
}
func PairOf[A, B any](a A, b B) Pair[A, B]
func (p Pair[A, B]) Get() (A, B)
type Quad[A, B, C, W any] struct {
A A
B B
C C
D W
}
func QuadOf[A, B, C, D any](a A, b B, c C, d D) Quad[A, B, C, D]
func (q Quad[A, B, C, W]) Get() (A, B, C, W)
type Triple[A, B, C any] struct {
A A
B B
C C
}
func TripleOf[A, B, C any](a A, b B, c C) Triple[A, B, C]
func (t Triple[A, B, C]) Get() (A, B, C)
Source Files
¶
Click to show internal directories.
Click to hide internal directories.