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