tuple

package
v2.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2022 License: MIT Imports: 0 Imported by: 0

README

tuple

pair

pair is a set of type T, R.

tripple

tripple is a set of type A, B, C.

Documentation

Overview

tuple is a readonly data set. from 2 to 100.

Example
package main

import (
	"fmt"
	"strings"

	"github.com/snowmerak/generics-for-go/v2/types/tuple"
)

func main() {
	a := tuple.N5("Hello", "world", 1, 2, 3)
	fmt.Println(strings.Repeat(a.T1(), a.T3()))
	fmt.Println(strings.Repeat(a.T2(), a.T4()))
	fmt.Println(a.T5() * a.T5())
}
Output:

Hello
WorldWorld
9

Index

Examples

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Tuple10

type Tuple10[T1 any, T2 any, T3 any, T4 any, T5 any, T6 any, T7 any, T8 any, T9 any, T10 any] struct {
	// contains filtered or unexported fields
}

func N10

func N10[T1 any, T2 any, T3 any, T4 any, T5 any, T6 any, T7 any, T8 any, T9 any, T10 any](v1 T1, v2 T2, v3 T3, v4 T4, v5 T5, v6 T6, v7 T7, v8 T8, v9 T9, v10 T10) Tuple10[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10]

func (Tuple10[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10]) T1

func (t Tuple10[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10]) T1() T1

func (Tuple10[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10]) T10

func (t Tuple10[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10]) T10() T10

func (Tuple10[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10]) T2

func (t Tuple10[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10]) T2() T2

func (Tuple10[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10]) T3

func (t Tuple10[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10]) T3() T3

func (Tuple10[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10]) T4

func (t Tuple10[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10]) T4() T4

func (Tuple10[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10]) T5

func (t Tuple10[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10]) T5() T5

func (Tuple10[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10]) T6

func (t Tuple10[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10]) T6() T6

func (Tuple10[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10]) T7

func (t Tuple10[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10]) T7() T7

func (Tuple10[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10]) T8

func (t Tuple10[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10]) T8() T8

func (Tuple10[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10]) T9

func (t Tuple10[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10]) T9() T9

type Tuple2

type Tuple2[T1 any, T2 any] struct {
	// contains filtered or unexported fields
}

func N2

func N2[T1 any, T2 any](v1 T1, v2 T2) Tuple2[T1, T2]

func (Tuple2[T1, T2]) T1

func (t Tuple2[T1, T2]) T1() T1

func (Tuple2[T1, T2]) T2

func (t Tuple2[T1, T2]) T2() T2

type Tuple3

type Tuple3[T1 any, T2 any, T3 any] struct {
	// contains filtered or unexported fields
}

func N3

func N3[T1 any, T2 any, T3 any](v1 T1, v2 T2, v3 T3) Tuple3[T1, T2, T3]

func (Tuple3[T1, T2, T3]) T1

func (t Tuple3[T1, T2, T3]) T1() T1

func (Tuple3[T1, T2, T3]) T2

func (t Tuple3[T1, T2, T3]) T2() T2

func (Tuple3[T1, T2, T3]) T3

func (t Tuple3[T1, T2, T3]) T3() T3

type Tuple4

type Tuple4[T1 any, T2 any, T3 any, T4 any] struct {
	// contains filtered or unexported fields
}

func N4

func N4[T1 any, T2 any, T3 any, T4 any](v1 T1, v2 T2, v3 T3, v4 T4) Tuple4[T1, T2, T3, T4]

func (Tuple4[T1, T2, T3, T4]) T1

func (t Tuple4[T1, T2, T3, T4]) T1() T1

func (Tuple4[T1, T2, T3, T4]) T2

func (t Tuple4[T1, T2, T3, T4]) T2() T2

func (Tuple4[T1, T2, T3, T4]) T3

func (t Tuple4[T1, T2, T3, T4]) T3() T3

func (Tuple4[T1, T2, T3, T4]) T4

func (t Tuple4[T1, T2, T3, T4]) T4() T4

type Tuple5

type Tuple5[T1 any, T2 any, T3 any, T4 any, T5 any] struct {
	// contains filtered or unexported fields
}

func N5

func N5[T1 any, T2 any, T3 any, T4 any, T5 any](v1 T1, v2 T2, v3 T3, v4 T4, v5 T5) Tuple5[T1, T2, T3, T4, T5]

func (Tuple5[T1, T2, T3, T4, T5]) T1

func (t Tuple5[T1, T2, T3, T4, T5]) T1() T1

func (Tuple5[T1, T2, T3, T4, T5]) T2

func (t Tuple5[T1, T2, T3, T4, T5]) T2() T2

func (Tuple5[T1, T2, T3, T4, T5]) T3

func (t Tuple5[T1, T2, T3, T4, T5]) T3() T3

func (Tuple5[T1, T2, T3, T4, T5]) T4

func (t Tuple5[T1, T2, T3, T4, T5]) T4() T4

func (Tuple5[T1, T2, T3, T4, T5]) T5

func (t Tuple5[T1, T2, T3, T4, T5]) T5() T5

type Tuple6

type Tuple6[T1 any, T2 any, T3 any, T4 any, T5 any, T6 any] struct {
	// contains filtered or unexported fields
}

func N6

func N6[T1 any, T2 any, T3 any, T4 any, T5 any, T6 any](v1 T1, v2 T2, v3 T3, v4 T4, v5 T5, v6 T6) Tuple6[T1, T2, T3, T4, T5, T6]

func (Tuple6[T1, T2, T3, T4, T5, T6]) T1

func (t Tuple6[T1, T2, T3, T4, T5, T6]) T1() T1

func (Tuple6[T1, T2, T3, T4, T5, T6]) T2

func (t Tuple6[T1, T2, T3, T4, T5, T6]) T2() T2

func (Tuple6[T1, T2, T3, T4, T5, T6]) T3

func (t Tuple6[T1, T2, T3, T4, T5, T6]) T3() T3

func (Tuple6[T1, T2, T3, T4, T5, T6]) T4

func (t Tuple6[T1, T2, T3, T4, T5, T6]) T4() T4

func (Tuple6[T1, T2, T3, T4, T5, T6]) T5

func (t Tuple6[T1, T2, T3, T4, T5, T6]) T5() T5

func (Tuple6[T1, T2, T3, T4, T5, T6]) T6

func (t Tuple6[T1, T2, T3, T4, T5, T6]) T6() T6

type Tuple7

type Tuple7[T1 any, T2 any, T3 any, T4 any, T5 any, T6 any, T7 any] struct {
	// contains filtered or unexported fields
}

func N7

func N7[T1 any, T2 any, T3 any, T4 any, T5 any, T6 any, T7 any](v1 T1, v2 T2, v3 T3, v4 T4, v5 T5, v6 T6, v7 T7) Tuple7[T1, T2, T3, T4, T5, T6, T7]

func (Tuple7[T1, T2, T3, T4, T5, T6, T7]) T1

func (t Tuple7[T1, T2, T3, T4, T5, T6, T7]) T1() T1

func (Tuple7[T1, T2, T3, T4, T5, T6, T7]) T2

func (t Tuple7[T1, T2, T3, T4, T5, T6, T7]) T2() T2

func (Tuple7[T1, T2, T3, T4, T5, T6, T7]) T3

func (t Tuple7[T1, T2, T3, T4, T5, T6, T7]) T3() T3

func (Tuple7[T1, T2, T3, T4, T5, T6, T7]) T4

func (t Tuple7[T1, T2, T3, T4, T5, T6, T7]) T4() T4

func (Tuple7[T1, T2, T3, T4, T5, T6, T7]) T5

func (t Tuple7[T1, T2, T3, T4, T5, T6, T7]) T5() T5

func (Tuple7[T1, T2, T3, T4, T5, T6, T7]) T6

func (t Tuple7[T1, T2, T3, T4, T5, T6, T7]) T6() T6

func (Tuple7[T1, T2, T3, T4, T5, T6, T7]) T7

func (t Tuple7[T1, T2, T3, T4, T5, T6, T7]) T7() T7

type Tuple8

type Tuple8[T1 any, T2 any, T3 any, T4 any, T5 any, T6 any, T7 any, T8 any] struct {
	// contains filtered or unexported fields
}

func N8

func N8[T1 any, T2 any, T3 any, T4 any, T5 any, T6 any, T7 any, T8 any](v1 T1, v2 T2, v3 T3, v4 T4, v5 T5, v6 T6, v7 T7, v8 T8) Tuple8[T1, T2, T3, T4, T5, T6, T7, T8]

func (Tuple8[T1, T2, T3, T4, T5, T6, T7, T8]) T1

func (t Tuple8[T1, T2, T3, T4, T5, T6, T7, T8]) T1() T1

func (Tuple8[T1, T2, T3, T4, T5, T6, T7, T8]) T2

func (t Tuple8[T1, T2, T3, T4, T5, T6, T7, T8]) T2() T2

func (Tuple8[T1, T2, T3, T4, T5, T6, T7, T8]) T3

func (t Tuple8[T1, T2, T3, T4, T5, T6, T7, T8]) T3() T3

func (Tuple8[T1, T2, T3, T4, T5, T6, T7, T8]) T4

func (t Tuple8[T1, T2, T3, T4, T5, T6, T7, T8]) T4() T4

func (Tuple8[T1, T2, T3, T4, T5, T6, T7, T8]) T5

func (t Tuple8[T1, T2, T3, T4, T5, T6, T7, T8]) T5() T5

func (Tuple8[T1, T2, T3, T4, T5, T6, T7, T8]) T6

func (t Tuple8[T1, T2, T3, T4, T5, T6, T7, T8]) T6() T6

func (Tuple8[T1, T2, T3, T4, T5, T6, T7, T8]) T7

func (t Tuple8[T1, T2, T3, T4, T5, T6, T7, T8]) T7() T7

func (Tuple8[T1, T2, T3, T4, T5, T6, T7, T8]) T8

func (t Tuple8[T1, T2, T3, T4, T5, T6, T7, T8]) T8() T8

type Tuple9

type Tuple9[T1 any, T2 any, T3 any, T4 any, T5 any, T6 any, T7 any, T8 any, T9 any] struct {
	// contains filtered or unexported fields
}

func N9

func N9[T1 any, T2 any, T3 any, T4 any, T5 any, T6 any, T7 any, T8 any, T9 any](v1 T1, v2 T2, v3 T3, v4 T4, v5 T5, v6 T6, v7 T7, v8 T8, v9 T9) Tuple9[T1, T2, T3, T4, T5, T6, T7, T8, T9]

func (Tuple9[T1, T2, T3, T4, T5, T6, T7, T8, T9]) T1

func (t Tuple9[T1, T2, T3, T4, T5, T6, T7, T8, T9]) T1() T1

func (Tuple9[T1, T2, T3, T4, T5, T6, T7, T8, T9]) T2

func (t Tuple9[T1, T2, T3, T4, T5, T6, T7, T8, T9]) T2() T2

func (Tuple9[T1, T2, T3, T4, T5, T6, T7, T8, T9]) T3

func (t Tuple9[T1, T2, T3, T4, T5, T6, T7, T8, T9]) T3() T3

func (Tuple9[T1, T2, T3, T4, T5, T6, T7, T8, T9]) T4

func (t Tuple9[T1, T2, T3, T4, T5, T6, T7, T8, T9]) T4() T4

func (Tuple9[T1, T2, T3, T4, T5, T6, T7, T8, T9]) T5

func (t Tuple9[T1, T2, T3, T4, T5, T6, T7, T8, T9]) T5() T5

func (Tuple9[T1, T2, T3, T4, T5, T6, T7, T8, T9]) T6

func (t Tuple9[T1, T2, T3, T4, T5, T6, T7, T8, T9]) T6() T6

func (Tuple9[T1, T2, T3, T4, T5, T6, T7, T8, T9]) T7

func (t Tuple9[T1, T2, T3, T4, T5, T6, T7, T8, T9]) T7() T7

func (Tuple9[T1, T2, T3, T4, T5, T6, T7, T8, T9]) T8

func (t Tuple9[T1, T2, T3, T4, T5, T6, T7, T8, T9]) T8() T8

func (Tuple9[T1, T2, T3, T4, T5, T6, T7, T8, T9]) T9

func (t Tuple9[T1, T2, T3, T4, T5, T6, T7, T8, T9]) T9() T9

Directories

Path Synopsis
pair is a pair of values of the two types.
pair is a pair of values of the two types.
tripple is a tripple of values with other types.
tripple is a tripple of values with other types.

Jump to

Keyboard shortcuts

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