2011-05-23 20:52:55 -05:00
|
|
|
|
|
|
|
use std;
|
2011-12-13 18:25:51 -06:00
|
|
|
import vec::*;
|
2011-05-23 20:52:55 -05:00
|
|
|
|
|
|
|
fn main() {
|
2012-01-18 15:02:29 -06:00
|
|
|
let v = init_elt(0u, 0);
|
2011-08-19 17:16:48 -05:00
|
|
|
v += [4, 2];
|
|
|
|
assert (reversed(v) == [2, 4]);
|
2011-08-13 02:10:18 -05:00
|
|
|
}
|