fc6b7c8b38
Long lines were fixed in a very crude way, as I'll be following up with another reformat in a bit.
8 lines
176 B
Rust
8 lines
176 B
Rust
fn force(f: block() -> int) -> int { ret f(); }
|
|
fn main() {
|
|
let f = fn () -> int { ret 7 };
|
|
assert (force(f) == 7);
|
|
let g = bind force(f);
|
|
assert (g() == 7);
|
|
}
|