9 lines
123 B
Rust
9 lines
123 B
Rust
|
|
use std;
|
|
import std::vec::*;
|
|
|
|
fn main() {
|
|
let v = empty[int]();
|
|
v += [4, 2];
|
|
assert (reversed(v) == [2, 4]);
|
|
} |