2011-05-23 20:52:55 -05:00
|
|
|
|
2012-09-11 19:46:20 -05:00
|
|
|
extern mod std;
|
2012-09-05 14:32:05 -05:00
|
|
|
use vec::*;
|
2011-05-23 20:52:55 -05:00
|
|
|
|
|
|
|
fn main() {
|
2012-03-22 10:39:41 -05:00
|
|
|
let mut v = from_elem(0u, 0);
|
2012-06-29 18:26:56 -05:00
|
|
|
v = vec::append(v, ~[4, 2]);
|
|
|
|
assert (reversed(v) == ~[2, 4]);
|
2011-08-13 02:10:18 -05:00
|
|
|
}
|