6 lines
116 B
Rust
6 lines
116 B
Rust
|
|
|
|
fn foo(a: @int, b: @int) -> int { ret *a + *b; }
|
|
|
|
fn main() { let f1 = bind foo(@10, @12); assert (f1() == 22); }
|