7 lines
126 B
Text
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])
|