[Haskell-cafe] How to use infinite lists to define the list of all negative integers

David House dmhouse at gmail.com
Mon Feb 5 14:02:35 EST 2007


On 05/02/07, Bahtijar Vogel <bahtijarvogel at gmail.com> wrote:
> Hi,
> How am I supposed to use infinite lists to define the list of all negative
> integers?

Don't forget the iterate function:

http://haskell.org/ghc/docs/latest/html/libraries/base/Data-List.html#v%3Aiterate

Also, I may be off the mark here, but this sounds like homework. The
following wiki page applies:

http://haskell.org/haskellwiki/Homework_help

-- 
-David House, dmhouse at gmail.com


More information about the Haskell-Cafe mailing list