xmath

package module
v0.0.0-...-028f5ea Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2023 License: CC0-1.0 Imports: 1 Imported by: 3

README

xmath -- math eXtensions

GoDoc

Quick start

package main

import (
    "fmt"

    "github.com/go-ng/xmath"
)

func main() {
    fmt.Println(xmath.Min(3, 1, 5)) // will print "1"
}

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Max

func Max[T constraints.Ordered](arg0 T, args ...T) T

Max returns the maximal value from the list of provided ones.

func Min

func Min[T constraints.Ordered](arg0 T, args ...T) T

Min returns the minimal value from the list of provided ones.

Types

This section is empty.

Jump to

Keyboard shortcuts

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