Slide 4
Slide 4 text
malgoの機能
● 変数の定義 let val x = 5 in ~
● 関数の定義 let fun f(x) = x + 1 in ~
● 外部関数の定義
let extern print_int : Int -> {} = "print_int"
● パターンマッチ
match {1, 2} with
| {x, y} => x + y
● 無名関数 fun x => x + 1
● 配列 let val a = [1, 2, 3] in a.(1) <- 4; a.(0)