RosettaCodeData/Task/Fibonacci-sequence/PicoLisp/fibonacci-sequence-5.l
2023-07-01 13:44:08 -04:00

11 lines
196 B
Text

(co 'fibo
(let (A 0 B 1)
(yield 'ready)
(while
(yield
(swap 'B (+ (swap 'A B) B)) ) ) ) )
(do 15
(printsp (yield 'next 'fibo)) )
(prinl)
(yield NIL 'fibo)