The parent type for Dec and Int, can be any number.
A child of Number, can be any integer.
A child of Number, can be any decimal.
let someNumber = 2
let mut someMutableNumber = 2
let printHello = {
print "Hello"
}
let printHello => print "Hello"
let print = (String msg) => {
dosomethingwith msg
}
<T: add(T), take(T)>
let print-info = (T a, T b) => {
print a add b
print a take b
}
let idk = (String a = "Something", String b) => {
blah
}
let doSomethingWith = (SomeStruct value) => {
print value.data
}
Can be called as both
doSomethingWith someStruct
and
someStruct doSomethingWith()
struct Person {
int age
String name
int height = 110
}
let somePerson = Person(18, "test", 160)
Rounded
namespace something/anotherthing
import something/anotherthing
let helloWorld => print "Hello World!"
helloWorld()