csci2041/repo-zhan4854/Lab_15/examples/two.src.txt

13 lines
181 B
Text
Raw Permalink Normal View History

2018-01-29 23:35:31 +00:00
function foo(x : int) =
x + 1;
function bar(y : int) =
y * 3;
function baz(x : int, y : int) =
let a = foo(x / 2) in
let b = bar(y) in
a * (2 + b);
baz(4, 2)