Functions
What function does that function, function?
Functions
fn main(): Unit => {
val sum = add(20, 50)
val result = "20 + 50 is = " + sum
display(result)
()
}
fn add(x: Int, y: Int): Int => x + y
fn display(answer: String): Unit => println(name)Last updated