Powered by AppSignal & Oban Pro
Would you like to see your link here? Contact us

Katas solutions

square_every_digit.livemd

Katas solutions

Square Every Digit exercise

actual = 723_041

actual
|> Integer.to_string()
|> String.graphemes()
|> Enum.map(fn x -> Integer.pow(String.to_integer(x), 2) end)
|> Enum.join()
|> String.to_integer()
49490161