7 lines
159 B
Text
7 lines
159 B
Text
function fib(x : int) =
|
|
if x < 1 then 1 else fib(x - 1) + fib(x - 2) end;
|
|
|
|
function fib_array(arr : int[]) =
|
|
mapseq(fib, arr);
|
|
|
|
fib_array([41,42,43,44])
|