types

package
v0.0.0-...-f68c1a0 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsZero

func IsZero[T Number](n T) bool

func Zero

func Zero[T Number]() T

Types

type Complex

type Complex interface {
	~complex64 | ~complex128
}

type Float

type Float interface {
	~float32 | ~float64
}

type Integer

type Integer interface {
	~int | ~int8 | ~int16 | ~int32 | ~int64 | ~uint | ~uint8 | ~uint16 | ~uint32 | ~uint64 | ~uintptr
}

type M

type M map[string]any

type Number

type Number interface {
	Integer | Float | Complex
}

type Ordered

type Ordered = cmp.Ordered

type Pair

type Pair[A, B any] struct {
	A A
	B B
}

func NewPair

func NewPair[A, B any](a A, b B) Pair[A, B]

func (Pair[A, B]) String

func (p Pair[A, B]) String() string

func (Pair[A, B]) Unpack

func (p Pair[A, B]) Unpack() (A, B)

Jump to

Keyboard shortcuts

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