ints

package
v0.0.0-...-3948e75 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2020 License: BSD-3-Clause Imports: 0 Imported by: 0

Documentation

Overview

Package ints provides simple integer utilities.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Max

func Max(x, y int) int

Max returns the maximum of x and y.

func Min

func Min(x, y int) int

Min returns the minimum of x and y.

func MinMax

func MinMax(x, y int) (min, max int)

MinMax returns the min and max of x and y.

func NextMultiple

func NextMultiple(a, n int) int

NextMultiple returns the next multiple of n greater than or equal to a.

Types

This section is empty.

Jump to

Keyboard shortcuts

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