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 ¶
- type Tuple10
- func (t Tuple10[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10]) T1() T1
- func (t Tuple10[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10]) T10() T10
- func (t Tuple10[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10]) T2() T2
- func (t Tuple10[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10]) T3() T3
- func (t Tuple10[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10]) T4() T4
- func (t Tuple10[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10]) T5() T5
- func (t Tuple10[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10]) T6() T6
- func (t Tuple10[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10]) T7() T7
- func (t Tuple10[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10]) T8() T8
- func (t Tuple10[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10]) T9() T9
- type Tuple2
- type Tuple3
- type Tuple4
- type Tuple5
- type Tuple6
- type Tuple7
- func (t Tuple7[T1, T2, T3, T4, T5, T6, T7]) T1() T1
- func (t Tuple7[T1, T2, T3, T4, T5, T6, T7]) T2() T2
- func (t Tuple7[T1, T2, T3, T4, T5, T6, T7]) T3() T3
- func (t Tuple7[T1, T2, T3, T4, T5, T6, T7]) T4() T4
- func (t Tuple7[T1, T2, T3, T4, T5, T6, T7]) T5() T5
- func (t Tuple7[T1, T2, T3, T4, T5, T6, T7]) T6() T6
- func (t Tuple7[T1, T2, T3, T4, T5, T6, T7]) T7() T7
- type Tuple8
- func (t Tuple8[T1, T2, T3, T4, T5, T6, T7, T8]) T1() T1
- func (t Tuple8[T1, T2, T3, T4, T5, T6, T7, T8]) T2() T2
- func (t Tuple8[T1, T2, T3, T4, T5, T6, T7, T8]) T3() T3
- func (t Tuple8[T1, T2, T3, T4, T5, T6, T7, T8]) T4() T4
- func (t Tuple8[T1, T2, T3, T4, T5, T6, T7, T8]) T5() T5
- func (t Tuple8[T1, T2, T3, T4, T5, T6, T7, T8]) T6() T6
- func (t Tuple8[T1, T2, T3, T4, T5, T6, T7, T8]) T7() T7
- func (t Tuple8[T1, T2, T3, T4, T5, T6, T7, T8]) T8() T8
- type Tuple9
- func (t Tuple9[T1, T2, T3, T4, T5, T6, T7, T8, T9]) T1() T1
- func (t Tuple9[T1, T2, T3, T4, T5, T6, T7, T8, T9]) T2() T2
- func (t Tuple9[T1, T2, T3, T4, T5, T6, T7, T8, T9]) T3() T3
- func (t Tuple9[T1, T2, T3, T4, T5, T6, T7, T8, T9]) T4() T4
- func (t Tuple9[T1, T2, T3, T4, T5, T6, T7, T8, T9]) T5() T5
- func (t Tuple9[T1, T2, T3, T4, T5, T6, T7, T8, T9]) T6() T6
- func (t Tuple9[T1, T2, T3, T4, T5, T6, T7, T8, T9]) T7() T7
- func (t Tuple9[T1, T2, T3, T4, T5, T6, T7, T8, T9]) T8() T8
- func (t Tuple9[T1, T2, T3, T4, T5, T6, T7, T8, T9]) T9() T9
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 (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
type Tuple5 ¶
type Tuple5[T1 any, T2 any, T3 any, T4 any, T5 any] struct { // contains filtered or unexported fields }
type Tuple6 ¶
type Tuple6[T1 any, T2 any, T3 any, T4 any, T5 any, T6 any] struct { // contains filtered or unexported fields }
type Tuple7 ¶
type Tuple7[T1 any, T2 any, T3 any, T4 any, T5 any, T6 any, T7 any] struct { // contains filtered or unexported fields }
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 (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
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 (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
Click to show internal directories.
Click to hide internal directories.