tuple

package module
v0.0.0-...-d3cd537 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type One

type One[V1 any] struct {
	V1 V1
}

func NewOne

func NewOne[V1 any](v1 V1) One[V1]

func (*One[V1]) Unpack

func (t *One[V1]) Unpack() V1

type Ones

type Ones[V1 any] []One[V1]

func (Ones[V1]) All

func (t Ones[V1]) All() iter.Seq2[int, One[V1]]

func (*Ones[V1]) Push

func (t *Ones[V1]) Push(v1 V1) OnesChain[V1]

func (Ones[V1]) Values

func (t Ones[V1]) Values() iter.Seq[One[V1]]

type OnesChain

type OnesChain[V1 any] func(V1) OnesChain[V1]

type Two

type Two[V1, V2 any] struct {
	V1 V1
	V2 V2
}

func NewTwo

func NewTwo[V1, V2 any](v1 V1, v2 V2) Two[V1, V2]

func (*Two[V1, V2]) Unpack

func (t *Two[V1, V2]) Unpack() (V1, V2)

type Twos

type Twos[V1, V2 any] []Two[V1, V2]

func (Twos[V1, V2]) All

func (t Twos[V1, V2]) All() iter.Seq2[int, Two[V1, V2]]

func (*Twos[V1, V2]) Push

func (t *Twos[V1, V2]) Push(v1 V1, v2 V2) TwosChain[V1, V2]

func (Twos[V1, V2]) Values

func (t Twos[V1, V2]) Values() iter.Seq[Two[V1, V2]]

type TwosChain

type TwosChain[V1, V2 any] func(V1, V2) TwosChain[V1, V2]

Jump to

Keyboard shortcuts

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