alms-0.4.9: examples/ex01.alms
(* A Type-Correct, Blame-Free Program *)
let ap =
fun f: (int -o int) ->
fun x: int ->
f x
let inc =
fun y: int -> ap (fun z:int -> z + 1) y
in print (inc 5)
(* A Type-Correct, Blame-Free Program *)
let ap =
fun f: (int -o int) ->
fun x: int ->
f x
let inc =
fun y: int -> ap (fun z:int -> z + 1) y
in print (inc 5)