Revised for loop protocol

from blog baby steps, | ↗ original
In Rust today, there is a special for syntax designed to support interruptible loops. Since we introduced it, this has proven to be a remarkable success. However, I think we can improve it very slightly. Current for protocol The current “for protocol” is best explained by giving an example of how to implement it for slices: fn each(v: &[E], f:...