Kotlin
// Create a variable myFunc1: this is a function with 2 input parameters, returns Int
var myFunc1 : (a:Int, b:Int) -> Int;
// For variable myFunc1 set body of the function
myFunc1 = { p1, p2 -> p1 + p2 };
// call the lambda function
var result = myFunc1(5, 21);
// result = 26