Arc Forumnew | comments | leaders | submitlogin
1 point by tokipin 6069 days ago | link | parent

i would use something like (based on the rfn idea):

  (= a 0)
  
  ((afn ()
     (pr ++.a)
     (if (isnt a 8) (self))))


3 points by drcode 6069 days ago | link

right- as I mentioned in the other comment, this is less cumbersome with "drain"

  (= a 0)
  
  (drain (do (pr ++.a)
             (isnt a 8)))

-----

3 points by almkglor 6068 days ago | link

shorter thus:

  (drain:do
    (pr ++.a)
    (isnt a 8))

-----