What Are Closures

(azriel's) Definition: A stored anonymous function, that captures its scoped environment.


#![allow(unused_variables)]
fn main() {
let closure_0 = || println!("hello");
let closure_1 = || println!("world");

closure_0();
}