Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Tuple ¶
Tuple is a structure which contains two distinct values. These values are typically used for representing key/values pairs of maps. Other useful uses for tuples are for representing element/error paris.
func New ¶
New creates a new Tuple with the given values. It takes two parameters, `t` and `v`, of any type `T` and `V` respectively, and returns a Tuple[T, V] with the `t` value assigned to the `first` field and the `v` value assigned to the `second` field.
func (Tuple[T, V]) First ¶
func (t Tuple[T, V]) First() T
First returns the first element of the tuple.
Click to show internal directories.
Click to hide internal directories.