2011-05-24 01:52:55 +00:00
|
|
|
|
|
|
|
use std;
|
2011-08-12 04:25:53 +00:00
|
|
|
import std::ivec::*;
|
2011-05-24 01:52:55 +00:00
|
|
|
|
|
|
|
fn main() {
|
2011-08-12 04:25:53 +00:00
|
|
|
let v = init_elt(0, 0u);
|
|
|
|
v += ~[4, 2];
|
|
|
|
assert (reversed(v) == ~[2, 4]);
|
2011-05-24 01:52:55 +00:00
|
|
|
}
|