by FullyFunctional · 8y ago · 0 comments
In Haskell, first line would be the same without the const and the other could be
tongan = intercalate " ".reverse.map ((base !!).(`mod` 10)).takeWhile (> 0).iterate (`div` 10)
(ISTM that there must be a better alternative to takeWhile + iterate).
No comments yet.