Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Number systems of the world, sorted by complexity of counting (2006). Parent comment
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).
There are no comments on this comment yet.
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).