number

package
v1.0.7 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Add added in v1.0.7

func Add[T Number](left T) func(T) T

Add is a curried function used to add two numbers

func Inc added in v1.0.7

func Inc[T Number](value T) T

Inc is a function that increments a number

func MagmaSub

func MagmaSub[A Number]() M.Magma[A]

func MonoidSum

func MonoidSum[A Number]() M.Monoid[A]

func SemigroupSum

func SemigroupSum[A Number]() S.Semigroup[A]

Types

type Number added in v1.0.7

type Number interface {
	C.Integer | C.Float | C.Complex
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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