[Haskell-cafe] (mostly OT) Strange patterns of commas
matthew at brecknell.net
Sun Sep 27 18:56:29 EDT 2009
Now see if you can tell us why this pattern is similar:
[ replicate n '-' | n <- [140..171] ]
Hint: Look at the closed form as n gets big:
After that, you can tell us why it's a parabola.
Matthias Kilian wrote:
> Fibonacci numbers are always surprising.
> Try this on a terminal that's 159 characters wide (using a properly
> sized xterm(1) may be a good idea):
> let f = 1 : 1 : zipWith (+) f (tail f) in take 780 f
More information about the Haskell-Cafe