Int
:(13 - 2) * 4 - 6 % 3
RunBool
:false or (true and false)
Runlet
statement:let x = 1 in x + 1
Runin
! If you want to define multiple variables, you can use multiple let statements:let x = 3 in let y = 5 in x - y
Runfun
keyword:fun (x: Bool) -> if x then 1 else 0
Runlet add = fun (x: Int) (y: Int) -> x + y in
let addone = add 1 in
addone 20
Runif then/else
expressionif true then 1 else 0
Runlet info = {age=30, is_tall=false} in info.age
Run❯❯❯