fold() and reduce() look like twins. Both walk a collection, both hand you an acc and the next element, and both collapse everything into one value. Most developers pick whichever name comes to mind f

Markdown supported · ⌘↵ to post
No responses yet.