Slide 57
Slide 57 text
// Lambdas are just another representation for
// functions; they are not DECLARED the same way
// as function types
val add = fun(a: Int, b: Int) = a + b
val subtract: (Int, Int) !" Int = { a, b !" a - b }
but passed / used as expressions as well
fun report(operation: (Int, Int) !" Int) =
println(operation.invoke(2, 2))