Modules are a way to group together variables and functions under a namespace.
module Math { let PI = 3.1415 def sin(a) { ... } def cos(a) { ... } def tan(a) { ... } }
Accessing variables and functions inside a module is simple.
println Math.PI println 3 |> Math.sin
There was an error while loading. Please reload this page.