is

package
v1.13.0 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2024 License: MIT, MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Empty

func Empty[V any](s iter.Seq[V]) bool

func EqualTo

func EqualTo[N Comparable](a, b N) bool

func Even

func Even[T Integer](t T) bool

func GreaterThan

func GreaterThan[N Comparable](a, b N) bool

func LessThan

func LessThan[N Comparable](a, b N) bool

func Negative

func Negative[T Number](t T) bool

func Nil

func Nil[T any](t T) bool

func Odd

func Odd[T Integer](t T) bool

func Positive

func Positive[T Number](t T) bool

func Zero

func Zero[T Number](t T) bool

Types

type Comparable

type Comparable interface {
	Number | ~string
}

type Complex

type Complex interface {
	~complex64 | ~complex128
}

type Float

type Float interface {
	~float32 | ~float64
}

type Int

type Int interface {
	~int | ~int8 | ~int16 | ~int32 | ~int64
}

type Integer

type Integer interface {
	Int | Uint
}

type Number

type Number interface {
	Integer | Float
}

type Uint

type Uint interface {
	~uint | ~uint8 | ~uint16 | ~uint32 | ~uint64 | ~uintptr
}

Jump to

Keyboard shortcuts

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