// Anonymous function = A function with no identifier.
fun main() {
// Anonymous function (lambda) that takes two Ints and returns their sum.
// { a, b -> a + b } ← Kotlin’s concise lambda syntax.
val add: (Int, Int) -> Int = { a, b -> a + b }
// Use the anonymous function
val result = add(10, 20)
println(result)
}
/*
run:
30
*/