Rust Closures and lambda expressions Lambdas with explicit return types


Example

// lambda expressions can have explicitly annotated return types
let floor_func = |x: f64| -> i64 { x.floor() as i64 };