mathfn

package
v0.37.0 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2023 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package mathfn provides curried functional versions of the functions provided by the "math" package so they can be more easily used within "enum" and "maps" functions.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Abs

func Abs[T Number](v T) T

Abs returns the absolute value of the given number.

Types

type Number

type Number interface {
	constraints.Integer | constraints.Unsigned | constraints.Float
}

Number is a number.

Jump to

Keyboard shortcuts

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