let a = 123;
let basicFunction = (a,b) => a + b;
Bindings are immutable
They can be muted only by using ref
which is not actually mutating. You can read more here
let a = "test"; let a = "other test";
let foo = ref(5);
let five = foo^;
foo := 6;
Everything is camel-cased
You can annotate with a type
let a: int = 12;
Types can be aliased in the following manner:
type test = int;
let greeting = "Greeting";
let hello = {
let greeting = "Hello";
let world = "World"
greeting ++ world;
};
print_string(hello);