integers

package
v0.2.15 Latest Latest
Warning

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

Go to latest
Published: Jan 1, 2024 License: BSD-3-Clause Imports: 1 Imported by: 0

Documentation

Index

Examples

Constants

This section is empty.

Variables

This section is empty.

Functions

func Alt

func Alt[A constraints.Integer](a A) func(b A) A
Example
fmt.Println(
	Alt(1)(2),
	Alt(0)(2),
)
Output:

1 2

func Even

func Even[A constraints.Integer](a A) bool
Example
fmt.Println(
	Even(4),
)
Output:

true

func Odd

func Odd[A constraints.Integer](a A) bool
Example
fmt.Println(
	Odd(5),
)
Output:

true

Types

This section is empty.

Jump to

Keyboard shortcuts

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