Documentation
¶
Index ¶
- Constants
- func Abs[N Number](a N) N
- func GCD[T Int](a, b T) T
- func LCM[T Int](a, b T) T
- func Pow[N Number, M Int](x N, y M) N
- func Product[T Number](nums ...T) T
- func Sign[N Snumber](a N) N
- func Sum[T Number](s ...T) T
- func SumMap[T comparable](s map[T]int) int
- func SumMapIf[T comparable](s map[T]int, predicate func(T) bool) int
- type Float
- type Int
- type Number
- type Sint
- type SizedInt
- type SizedSint
- type SizedUint
- type Snumber
- type Uint
Constants ¶
View Source
const MaxInt = math.MaxInt
View Source
const MinInt = math.MinInt
Variables ¶
This section is empty.
Functions ¶
func SumMap ¶
func SumMap[T comparable](s map[T]int) int
Types ¶
Click to show internal directories.
Click to hide internal directories.