Functions

val addOne = (x: Int) => x + 1
println(addOne(1)) // 2

Functions are expressions that have parameters, and take arguments.

Functions — Structure map

Clickable & Draggable!

Functions — Related pages: