Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

One can also break out of the LOOP and return the so far accumulated value:

  CL-USER> (loop for i from 1 below 10
                 sum i
                 when (= i 6)
                   do (loop-finish))
  21


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: