[Haskell-beginners] Enum for natural numbers

Daniel Fischer daniel.is.fischer at web.de
Mon Dec 21 09:06:38 EST 2009

Am Montag 21 Dezember 2009 15:02:16 schrieb kane96 at gmx.de:
> In another task I should create an infinite list: allNats :: [Nat]
> I would have done it in a recursion but there issn't a parameter to call
> allNats with

Prelude> :t iterate
iterate :: (a -> a) -> a -> [a]

More information about the Beginners mailing list