1 2 3 4 5 6 7 8
fn foo(@int a, @int b) -> int { ret a+b; } fn main() { auto f1 = bind foo(@10, @12); assert (f1() == 22); }