Integer.undigits
You're seeing just the function
undigits
, go back to Integer module for more information.
Specs
undigits([integer()], pos_integer()) :: integer()
Returns the integer represented by the ordered digits
.
An optional base
value may be provided representing the radix for the digits
.
Base has to be an integer greater than or equal to 2
.
Examples
iex> Integer.undigits([1, 2, 3])
123
iex> Integer.undigits([1, 4], 16)
20
iex> Integer.undigits([])
0