3 ms·
Recursion best practices - Carpe diem (Felix's blog)
There are not much design patterns on functional programming. I hope these guidelines can be a start
- dryman 14y agoThere are not much design patterns on functional programming. I hope these guidelines can be a start. Discussions are welcomed :D
- mooism2 14y agoA better style for the (Haskell) "return a list of fibonacci numbers" example would be better_fibs 0 f1 f2 = [] better_fibs n f1 f2 = f1 : better_fibs (n-1) f2 (f1+f2) as this generates the list lazily.