Docs / Language Manual / Overview

Overview

PrimitiveExample
Strings"Hello"
Characters'x'
Integers23, -23
Floats23.0, -23.0
Integer Addition23 + 1
Float Addition23.0 +. 1.0
Integer Division/Multiplication2 / 23 * 1
Float Division/Multiplication2.0 /. 23.0 *. 1.0
Float Exponentiation2.0 ** 2.0
String Concatenation"Hello " ++ "World"
Comparison>, <, >=, =<
Boolean operations!, &&, ||
Reference, Structural (deep) Equality===, ==
Immutable Lists[1, 2, 3]
Immutable Prepend[item1, item2, ...theRest]
Arrays[|1, 2, 3|]
Recordstype player = {score: int}; {score: 100}
Comments/* Comment here */