← Back to context

Comment by 8note

18 hours ago

fold kinda does too, for setting the first combined value that you are assembling, and thus on an empty list you end up with that wrong value, same as the for loop

No, the sum of the first ten natural numbers is always 55. It is not "initialised" to some other number beforehand.