On 9/29/11 5:20 AM, Peter Hull wrote:
On Thu, Sep 29, 2011 at 5:17 AM, Graydon Hoare<[email protected]>  wrote:
- I prefer the closure-passing form:
With this form, would it be possible to extract more than one value
per loop - for example if I had a sequence of numbers that I wanted to
pair up to make a sequence of (x, y) coordinates, such as 0, 0, 0, 1,
1, 1, 1, 0 ->  (0,0), (0,1), (1,1), (1,0)?

Use a tuple.

Patrick

_______________________________________________
Rust-dev mailing list
[email protected]
https://mail.mozilla.org/listinfo/rust-dev

Reply via email to