friends, please @ me with your cleverest and loveliest Haskell fibonacci implementations
-
-
Replying to @argumatronic
If you haven't seen fibs = zipWith (+) fibs (tail fibs) fib = (fibs !!) then it's by far my favorite.
2 replies 0 retweets 21 likes -
Replying to @pasiphae_goals @argumatronic
is this missing a `1:1:` at the beginning of the RHS for fibs? fibs = 1 : 1 : zipWith (+) fibs (tail fibs)
2 replies 0 retweets 7 likes
fibs = fix (join (.) (1:) . (zipWith (+) <*> tail))
3:26 AM - 25 Mar 2018
0 replies
0 retweets
4 likes
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.