3 ms·
The simple 13-line Haskell solution to P27 is an interesting contrast to the 27-line Python solution with its two layers of indirection. The Haskell solution i
by mbrubeck 17y ago
The simple 13-line Haskell solution to P27 is an interesting contrast to the 27-line Python solution with its two layers of indirection. The Haskell solution is much more declarative. (If you ported some of the Haskell Prelude to Python you might be able to write something similar, though without the nice List Monad syntax.)