Example: ``` val plus = { a: Int, b: Int -> a +...
# getting-started
d
Example:
Copy code
val plus = { a: Int, b: Int -> a + b}
val minus = {a : Int, b: Int -> a - b}
    
val x = 1
val y = 2
val op = if (Math.random() < 0.5) plus else minus
val res = op(x, y)
­čĹŹ 1