--
← Back to docs

Basic Syntax

Variables


let x = 42
let name = "hello"
let items = [1, 2, 3]


Functions


fn add(a, b) => a + b


Control Flow


if x > 0
print("positive")
else
print("non-positive")