Then I'd have to have a mutable "counter" variable AND I would have to increment that in the loop body.
This all makes the loop construct a not really desirable solution here.
In this scenario it's much easier and cleaner to have a for-loop with an infinite iterator.
you may want to have a look at std::f64::consts::PI
Then I'd have to have a mutable "counter" variable AND I would have to increment that in the loop body.
This all makes the loop construct a not really desirable solution here.
In this scenario it's much easier and cleaner to have a for-loop with an infinite iterator.
for i in 0i32.. could be replaced with the loop construct.