3 ms·
The thing about folds is that they build upon more fundamental concepts. If you understand recursion — which you must if you want to do FP — they're not too wei
by chc 16y ago
The thing about folds is that they build upon more fundamental concepts. If you understand recursion — which you must if you want to do FP — they're not too weird. But most people have trouble thinking recursively, so the simple implementation of a fold is confusing.
I think the name doesn't help either. People understand "reduce" more intuitively than "fold".