Alasca: Functions

Published on 2018-08-31.
  • zero or one paramemter list
  • zero or more parameters
fun name: String = "Bob"
fun effect(): Unit = println()
fun add(x: Int, y: Int) = x + y
  • partial application
let addFun: (Int, Int) -> Int = add
let add2Fun: Int -> Int = add(2, _)
...