Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

I suck at Haskell :(

Name: Anonymous 2009-08-11 14:05


ints [1] -eval-> [1,2,3,4,5..]
ints [3] -eval-> [1,4,7,10,13..]
ints [1,2] -eval-> [1,2,4,5,7,8,10,11..]
ints [1,1,3] -eval-> [1,2,3,6,7,8,11..]


I hope you know what I mean. How do I write ints in terms of foldl/r and zipWith?

Name: Anonymous 2009-08-11 14:35

itym ints = scanl (+) 1.cycle

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List