acca/math
Functions
gcd(a: Int, b: Int) -> Int
Computes greatest common divisor of two numbers https://en.wikipedia.org/wiki/Greatest_common_divisor
amath.gcd(20, 15) == 5
amath.gcd(54, 24) == 6
max(left: a, right: a, compare: fn(a, a) -> Ordering) -> a
Returns a max of two elements.
amath.max(3, 9, int.compare) == 9
amath.max(-1, 5, int.compare) == 5
min(left: a, right: a, compare: fn(a, a) -> Ordering) -> a
Returns a min of two elements.
amath.min(3, 9, int.compare) == 3
amath.min(-1, 5, int.compare) == -1