tuple

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

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 {
	First  A
	Second B
}

Pair is a tuple of two elements.

func MakePair added in v0.6.0

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

MakePair create a pair from a and b.

func (Pair[A, B]) String added in v0.1.1

func (self Pair[A, B]) String() string

type Triple

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

Triple is a tuple of three elements.

func MakeTriple added in v0.4.0

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

func (Triple[A, B, C]) String added in v0.1.1

func (self Triple[A, B, C]) String() string

type Tuple4

type Tuple4[A, B, C, D any] struct {
	First  A
	Second B
	Third  C
	Fourth D
}

Tuple4 is a tuple of four elements.

func MakeTuple4 added in v0.4.0

func MakeTuple4[A, B, C, D any](a A, b B, c C, d D) Tuple4[A, B, C, D]

func (Tuple4[A, B, C, D]) String added in v0.1.1

func (self Tuple4[A, B, C, D]) String() string

type Tuple5

type Tuple5[A, B, C, D, E any] struct {
	First  A
	Second B
	Third  C
	Fourth D
	Fifth  E
}

Tuple5 is a tuple of five elements.

func MakeTuple5 added in v0.4.0

func MakeTuple5[A, B, C, D, E any](a A, b B, c C, d D, e E) Tuple5[A, B, C, D, E]

func (Tuple5[A, B, C, D, E]) String added in v0.1.1

func (self Tuple5[A, B, C, D, E]) String() string

type Tuple6 added in v0.2.1

type Tuple6[A, B, C, D, E, F any] struct {
	First  A
	Second B
	Third  C
	Fourth D
	Fifth  E
	Sixth  F
}

Tuple6 is a tuple of six elements.

func MakeTuple6 added in v0.4.0

func MakeTuple6[A, B, C, D, E, F any](a A, b B, c C, d D, e E, f F) Tuple6[A, B, C, D, E, F]

func (Tuple6[A, B, C, D, E, F]) String added in v0.2.1

func (self Tuple6[A, B, C, D, E, F]) String() string

type Tuple7 added in v0.2.1

type Tuple7[A, B, C, D, E, F, G any] struct {
	First   A
	Second  B
	Third   C
	Fourth  D
	Fifth   E
	Sixth   F
	Seventh G
}

Tuple7 is a tuple of seven elements.

func MakeTuple7 added in v0.4.0

func MakeTuple7[A, B, C, D, E, F, G any](a A, b B, c C, d D, e E, f F, g G) Tuple7[A, B, C, D, E, F, G]

func (Tuple7[A, B, C, D, E, F, G]) String added in v0.2.1

func (self Tuple7[A, B, C, D, E, F, G]) String() string

type Tuple8 added in v0.2.1

type Tuple8[A, B, C, D, E, F, G, H any] struct {
	First   A
	Second  B
	Third   C
	Fourth  D
	Fifth   E
	Sixth   F
	Seventh G
	Eighth  H
}

Tuple8 is a tuple of eight elements.

func MakeTuple8 added in v0.4.0

func MakeTuple8[A, B, C, D, E, F, G, H any](a A, b B, c C, d D, e E, f F, g G, h H) Tuple8[A, B, C, D, E, F, G, H]

func (Tuple8[A, B, C, D, E, F, G, H]) String added in v0.2.1

func (self Tuple8[A, B, C, D, E, F, G, H]) String() string

type Tuple9 added in v0.2.1

type Tuple9[A, B, C, D, E, F, G, H, I any] struct {
	First   A
	Second  B
	Third   C
	Fourth  D
	Fifth   E
	Sixth   F
	Seventh G
	Eighth  H
	Ninth   I
}

Tuple9 is a tuple of nine elements.

func MakeTuple9 added in v0.4.0

func MakeTuple9[A, B, C, D, E, F, G, H, I any](a A, b B, c C, d D, e E, f F, g G, h H, i I) Tuple9[A, B, C, D, E, F, G, H, I]

func (Tuple9[A, B, C, D, E, F, G, H, I]) String added in v0.2.1

func (self Tuple9[A, B, C, D, E, F, G, H, I]) String() string

Jump to

Keyboard shortcuts

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