github.com/15mga/kiwi@v0.0.2-0.20240324021231-b95d5c3ac751/util/tuple.go (about) 1 package util 2 3 type Tuple2[T1, T2 any] struct { 4 Item1 T1 5 Item2 T2 6 } 7 8 type Tuple3[T1, T2, T3 any] struct { 9 Item1 T1 10 Item2 T2 11 Item3 T3 12 } 13 14 type Tuple4[T1, T2, T3, T4 any] struct { 15 Item1 T1 16 Item2 T2 17 Item3 T3 18 Item4 T4 19 } 20 21 type Tuple5[T1, T2, T3, T4, T5 any] struct { 22 Item1 T1 23 Item2 T2 24 Item3 T3 25 Item4 T4 26 Item5 T5 27 }