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

7 lines
126 B
Text

function times2(x : int) =
x * 2;
function times2_array(arr : int[]) =
map(times2, arr);
times2_array([1, 2, 3, 4])