[Haskell-cafe] Lazy Lists and IO

Jonathan Cast jcast at ou.edu
Wed Jul 11 16:51:06 EDT 2007


On Wednesday 11 July 2007, Chaddaï Fouché wrote:
> There is already many thing in standard library. The balance is important.
> You can write :
> longerThan n = (> n) . length . take (n+1)
> and it isn't so current a need that you want it into a library that
> already has many functions.

Shorter:

longerThan n = not . null . drop n

Jonathan Cast
http://sourceforge.net/projects/fid-core
http://sourceforge.net/projects/fid-emacs


More information about the Haskell-Cafe mailing list