Arc Forumnew | comments | leaders | submitlogin
2 points by mapper 5213 days ago | link | parent

'fib should have been simpler.

  (def fib (n)
    (with (a 0 b 1)
      (repeat n
        (pset  a b  b (+ a b)))
      a))