Is it possible to swap elements in a vec? I tried let mutable vec[int] a = vec(1,2,3); let int t = a.(0); a.(0) = a.(1); a.(1) = t; but rustboot says (quite rightly I suppose) that int is not mutable.
Pete ps. hope you're not too disappointed I stuck to ASCII for my identifiers, what's Chinese for 'a' anyway?!? _______________________________________________ Rust-dev mailing list [email protected] https://mail.mozilla.org/listinfo/rust-dev
