package
Version:
v0.37.0
Opens a new window with list of versions in this module.
Published: Aug 22, 2023
License: Apache-2.0
Opens a new window with license information.
Imports: 0
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package tuple provides generic tuples.
All tuple elements start with the letters A, B, C, etc.
to make them easy to remember.
-
type T2
-
type T3
-
type T4
-
type T5
-
func New5[A any, B any, C any, D any, E any](a A, b B, c C, d D, e E) *T5[A, B, C, D, E]
type T2[A any, B any] struct {
A A
B B
}
T2 represents a 2-element tuple.
func New2[A any, B any](a A, b B) *T2[A, B]
New2 creates a 2-element tuple.
type T3[A any, B any, C any] struct {
A A
B B
C C
}
T3 represents a 3-element tuple.
func New3[A any, B any, C any](a A, b B, c C) *T3[A, B, C]
New3 creates a 3-element tuple.
type T4[A any, B any, C any, D any] struct {
A A
B B
C C
D D
}
T4 represents a 4-element tuple.
func New4[A any, B any, C any, D any](a A, b B, c C, d D) *T4[A, B, C, D]
New4 creates a 4-element tuple.
T5 represents a 5-element tuple.
func New5[A any, B any, C any, D any, E any](a A, b B, c C, d D, e E) *T5[A, B, C, D, E]
New5 creates a 5-element tuple.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.