4 ms·
I theorize that humans do poorly with too much regularity and we actually benefit from irregularity, unlike computers. In Haskell, first line would be the same
by FullyFunctional 9y ago
I theorize that humans do poorly with too much regularity and we actually benefit from irregularity, unlike computers.
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).