5 lines
108 B
Rust
5 lines
108 B
Rust
|
|
|
|
fn push[T](v: &mutable vec[mutable? T], t: &T) { v += [t]; }
|
|
|
|
fn main() { let v = [1, 2, 3]; push(v, 1); } |