3.2. Functions with parameters

Of course functions may take some parameters, as in:

function addition = |a, b| {
  return a + b
}

Note

Parameters are constant references, hence they cannot be reassigned.

Invoking functions that take parameters is straightforward, too:

let three = addition(1, 2)
let hello_world = addition("hello ", "world!")