RosettaCodeData/Task/Fibonacci-sequence/Wrapl/fibonacci-sequence-4.wrapl

6 lines
115 B
Text
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
TO fib(n @ Integer.T) (
VAR seq <- [0, 1];
EVERY 3:to(n) DO seq:put(seq:pop + seq[1]);
RET seq[-1];
);