csci2041/repo-zhan4854/Lab_15/examples/funcs.src.txt
Michael Zhang 399845160c
f
2018-01-29 17:35:31 -06:00

12 lines
181 B
Text

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)