// Anonymous function = A function with no identifier.
// Anonymous function (closure) that takes two Ints and returns their sum.
// { (a: Int, b: Int) -> Int in a + b } ← Swift’s full closure syntax.
let add: (Int, Int) -> Int = { (a: Int, b: Int) -> Int in
a + b
}
// Use the anonymous function
let result = add(10, 20)
print(result)
/*
run:
30
*/