[Haskell-beginners] Using scanl for Fibonacci sequence

Lai Boon Hui laiboonh at gmail.com
Wed Oct 12 04:23:41 UTC 2016


Hi All,

i am not very sure how this can work
fibs = 1 : scanl (+) 1 fibs

Appreciate it if someone can guide me through by showing me a few steps of
the function evaluation

-- 
Best Regards,
Boon Hui
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/beginners/attachments/20161012/43d2b285/attachment.html>


More information about the Beginners mailing list