Created
April 2, 2018 21:29
-
-
Save KamilLelonek/a5192bddd1c9fd4edde2f96718971736 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def call(input, acc \\ "") | |
def call(0, acc), do: acc | |
def call(input, acc) | |
when is_binary(input) do | |
input | |
|> :binary.decode_unsigned() | |
|> call(acc) | |
|> prepend_zeros(input) | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment