5 lines
120 B
Rust
5 lines
120 B
Rust
|
fn main() {
|
||
|
#macro("mylambda", x, body, {fn f(int x) -> int {ret body}; f});
|
||
|
|
||
|
assert(#mylambda(y,y*2)(8) == 16);
|
||
|
}
|