[Haskell-beginners] recursively building lists

Edward Z. Yang ezyang at MIT.EDU
Tue Dec 8 17:45:19 EST 2009


Excerpts from Torsten Otto's message of Tue Dec 08 17:34:30 -0500 2009:
> testlist 1 = []:[]
> testlist n = []:(testlist n-1)

Works for me on GHC 6.10.4.  What compiler are you using?

Cheers,
Edward


More information about the Beginners mailing list