Hi apfelmus,

of course a left scan. What else!
Really a very, very nice solution.

Thank you,
Dirk

2008/7/21 apfelmus <apfelmus@quantentunnel.de>:
Use a left scan

 result = 2:3:scanl (+) 5 (cycle [2,4])


Regards,
apfelmus

_______________________________________________
Beginners mailing list
Beginners@haskell.org
http://www.haskell.org/mailman/listinfo/beginners