Post #2114079
2026-05-06 20:06 UTC
@shana I think the reverse take is more powerful: some loops can be avoided if you have a closed mathematical form for them.
And as someone else noted when quoting this post, for loops imply an ordering, the mathematical operation does not.
Plus, loops are just one form: generators are another, and the fact that
\[\sum_{i=0}^{m} f(i) = \sum_{i=0}^{n-1} f(i) + f(n) + \sum_{i=n+1}^{m} f(i) \]
means that generators are really another option.
Replies (0)
No replies.