tripple

package
v2.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2022 License: MIT Imports: 0 Imported by: 0

Documentation

Overview

tripple is a tripple of values with other types.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Tripple

type Tripple[A, B, C any] struct {
	// contains filtered or unexported fields
}

Tripple is a container of 3 values of the other types.

func Of

func Of[A, B, C any](a A, b B, c C) Tripple[A, B, C]

Of returns a new Tripple with given values.

func (Tripple[A, B, C]) Get

func (t Tripple[A, B, C]) Get() (A, B, C)

Get returns the values of the Tripple.

func (Tripple[A, B, C]) GetA

func (t Tripple[A, B, C]) GetA() A

GetA returns the value of the first element.

func (Tripple[A, B, C]) GetB

func (t Tripple[A, B, C]) GetB() B

GetB returns the value of the second element.

func (Tripple[A, B, C]) GetC

func (t Tripple[A, B, C]) GetC() C

GetC returns the value of the third element.

Jump to

Keyboard shortcuts

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