8 lines
126 B
Text
8 lines
126 B
Text
|
function times2(x : int) =
|
||
|
x * 2;
|
||
|
|
||
|
function times2_array(arr : int[]) =
|
||
|
map(times2, arr);
|
||
|
|
||
|
times2_array([1, 2, 3, 4])
|