You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I just discovered you can slice the slice iterator. It's neat, but unstable. .as_slice() as well as the Index implementations for the slice::Iter are marked unstable, but you can still use the slicing syntax in the beta channel.
Compiles in rustc 1.0.0-beta.2 (e9080ec 2015-04-16) (built 2015-04-16)
println!("{:?}",&[1,2,3].iter()[..1]);
The effect is that converting iterators to slices isn't closed down like it was intended.