functional

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2022 License: MIT Imports: 1 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Add

func Add[T Addable](a T, b T) T

func AddPartial

func AddPartial[T Addable](fixedAddable T) func(T) T

func AreEqual

func AreEqual[T comparable](a T, b T) bool

func AreEqualPartial

func AreEqualPartial[T comparable](fixedComparee T) func(T) bool

func AreNotEqual

func AreNotEqual[T comparable](a T, b T) bool

func AreNotEqualPartial

func AreNotEqualPartial[T comparable](fixedComparee T) func(T) bool

func BitAnd

func BitAnd[T constraints.Integer](a T, b T) T

func BitAndPartial

func BitAndPartial[T constraints.Integer](fixedOperand T) func(T) T

func BitOr

func BitOr[T constraints.Integer](a T, b T) T

func BitOrPartial

func BitOrPartial[T constraints.Integer](fixedOperand T) func(T) T

func BitShiftLeft

func BitShiftLeft[T constraints.Integer](a T, b T) T

func BitShiftLeftPartial

func BitShiftLeftPartial[T constraints.Integer](fixedOperand T) func(T) T

func BitShiftRight

func BitShiftRight[T constraints.Integer](a T, b T) T

func BitShiftRightPartial

func BitShiftRightPartial[T constraints.Integer](fixedOperand T) func(T) T

func BitXor

func BitXor[T constraints.Integer](a T, b T) T

func BitXorPartial

func BitXorPartial[T constraints.Integer](fixedOperand T) func(T) T

func Divide

func Divide[T Divisible](a T, b T) T

func DividePartial

func DividePartial[T Divisible](fixedDivideable T) func(T) T

func GetZero

func GetZero[T any]() T

func HasLengthMap

func HasLengthMap[TKey comparable, TValue any](comparee map[TKey]TValue, length int) bool

func HasLengthMapPartial

func HasLengthMapPartial[TKey comparable, TValue any](comparee map[TKey]TValue, length int) func(map[TKey]TValue) bool

func HasLengthSlice

func HasLengthSlice[T comparable](comparee []T, length int) bool

func HasLengthSlicePartial

func HasLengthSlicePartial[T comparable](comparee []T, length int) func([]T) bool

func HasLengthString

func HasLengthString(comparee string, length int) bool

func HasLengthStringPartial

func HasLengthStringPartial(comparee string, length int) func(string) bool

func IsFalse

func IsFalse(comparee bool) bool

func IsGreaterThan

func IsGreaterThan[T constraints.Ordered](a T, b T) bool

func IsGreaterThanEqual

func IsGreaterThanEqual[T constraints.Ordered](a T, b T) bool

func IsGreaterThanEqualPartial

func IsGreaterThanEqualPartial[T constraints.Ordered](fixedComparee T) func(T) bool

func IsGreaterThanPartial

func IsGreaterThanPartial[T constraints.Ordered](fixedComparee T) func(T) bool

func IsLessThan

func IsLessThan[T constraints.Ordered](a T, b T) bool

func IsLessThanEqual

func IsLessThanEqual[T constraints.Ordered](a T, b T) bool

func IsLessThanEqualPartial

func IsLessThanEqualPartial[T constraints.Ordered](fixedComparee T) func(T) bool

func IsLessThanPartial

func IsLessThanPartial[T constraints.Ordered](fixedComparee T) func(T) bool

func IsNil

func IsNil[T comparable](comparee T) bool

func IsTrue

func IsTrue(comparee bool) bool

func IsZero

func IsZero[T comparable](comparee T) bool

func Modulo

func Modulo[T constraints.Integer](a T, b T) T

func ModuloPartial

func ModuloPartial[T constraints.Integer](fixedOperand T) func(T) T

func Multiply

func Multiply[T Multiplyable](a T, b T) T

func MultiplyPartial

func MultiplyPartial[T Multiplyable](fixedMultiplyable T) func(T) T

func NegateBinaryPredicate

func NegateBinaryPredicate[T any](f func(T, T) bool) func(T, T) bool

func NegateUnaryPredicate

func NegateUnaryPredicate[T any](f func(T) bool) func(T) bool

func Subtract

func Subtract[T Subtractable](a T, b T) T

func SubtractPartial

func SubtractPartial[T Subtractable](fixedSubtractable T) func(T) T

Types

type Addable

type Addable interface {
	constraints.Integer | constraints.Float | constraints.Complex | string
}

type Divisible

type Divisible interface {
	constraints.Integer | constraints.Float | constraints.Complex
}

type Multiplyable

type Multiplyable interface {
	constraints.Integer | constraints.Float | constraints.Complex
}

type Subtractable

type Subtractable interface {
	constraints.Integer | constraints.Float | constraints.Complex
}

Jump to

Keyboard shortcuts

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