Integer.undigits/2

defmodule Integer do
  def undigits(digits, base \\ 10)
end

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.