Advanced iteration interface in Julia

According to an answer to my earlier performance question:

, the issue is that s += 1 assigns a new value to the same variable, and this isn’t treated well by the compiler.

1 Like