Is there some better way to "call" recur than that:

(loop [ arg1 value1
        arg2 value2
        ...
        argn valuen ]
  (...) ; some stuff here
  (let [ (...) ; some bindings here
         result (my-func ...)
         a1 (nth result 0)
         a2 (nth result 1)
         ...
         an (nth result (- n 1)) ]
    (recur a1 a2 ... an)))

I'd like to get rid of this a1, a2, ..., an and "call" recur in some
more convenient way. I've tried (apply recur result), but without any
success (Unable to resolve symbol: recur in this context).
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To post to this group, send email to clojure@googlegroups.com
To unsubscribe from this group, send email to 
clojure+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/clojure?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to