// Anonymous function = A function with no identifier.
fn main() {
// Anonymous function (closure) that takes two integers and returns their sum.
// |a, b| a + b <- this is Rust's concise closure syntax.
let add = |a: i32, b: i32| a + b;
// Use the anonymous function
let result = add(10, 20);
println!("{}", result);
}
/*
run:
30
*/