3 ms·
The factorial function can be useful for explaining the basics since it’s so simple, but it makes a poor example for showing when foldr is better than direct re
by skybrian 5y ago
The factorial function can be useful for explaining the basics since it’s so simple, but it makes a poor example for showing when foldr is better than direct recursion.