pair

package
v0.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 28, 2022 License: MPL-2.0 Imports: 0 Imported by: 3

Documentation

Overview

Package pair contains Pair and Triple types.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Pair

type Pair[T1, T2 any] struct {
	F1 T1
	F2 T2
}

Pair is two element tuple.

func MakePair

func MakePair[T1, T2 any](v1 T1, v2 T2) Pair[T1, T2]

MakePair creates a new Pair.

type Triple

type Triple[T1, T2, T3 any] struct {
	V1 T1
	V2 T2
	V3 T3
}

Triple is three element tuple.

func MakeTriple

func MakeTriple[T1, T2, T3 any](v1 T1, v2 T2, v3 T3) Triple[T1, T2, T3]

MakeTriple creates a new Triple.

Directories

Path Synopsis
Package ordered contains ordered Pair and Triple types.
Package ordered contains ordered Pair and Triple types.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL