glat/util
Values
pub fn int_digits(x: Int, base: Int) -> Result(List(Int), Nil)
pub fn int_power(base: Int, of exponent: Int) -> Int
Returns 0 if the exponent is negative
pub fn int_power_check(
base: Int,
of exponent: Int,
) -> Result(Int, Nil)
Returns Error if the exponent is negative.
pub fn int_undigits(
numbers: List(Int),
base: Int,
) -> Result(Int, Nil)