package
Version:
v0.4.0
Opens a new window with list of versions in this module.
Published: Oct 17, 2022
License: MPL-2.0
Opens a new window with license information.
Imports: 0
Opens a new window with list of imports.
Imported by: 3
Opens a new window with list of known importers.
Documentation
¶
Package pair contains Pair and Triple types.
type Pair[T1, T2 any] struct {
F1 T1
F2 T2
}
Pair is two element tuple.
func MakePair[T1, T2 any](v1 T1, v2 T2) Pair[T1, T2]
MakePair creates a new Pair.
type Triple[T1, T2, T3 any] struct {
V1 T1
V2 T2
V3 T3
}
Triple is three element tuple.
func MakeTriple[T1, T2, T3 any](v1 T1, v2 T2, v3 T3) Triple[T1, T2, T3]
MakeTriple creates a new Triple.
Source Files
¶
Directories
¶
Package ordered contains ordered Pair and Triple types.
|
Package ordered contains ordered Pair and Triple types. |
Click to show internal directories.
Click to hide internal directories.