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

6 lines
115 B
Text
Raw Permalink Normal View History

2013-04-10 22:43:41 -07:00
TO fib(n @ Integer.T) (
VAR seq <- [0, 1];
EVERY 3:to(n) DO seq:put(seq:pop + seq[1]);
RET seq[-1];
);