Hi, I'm going through some Scheme code to learn Clojure.  I defined a 
function

rember

as
 

(defn rember [atom l]
        (loop [a atom lat l]
           (cond
             (empty? lat) `()
             (= (first lat) a) (rest lat)
             :else (cons (first lat) (recur a (rest lat))))))



To which the REPL responds:

Can only recur from tail position
  [Thrown class java.lang.UnsupportedOperationException] 

Is the call to recur not in tail position here?

Thank you,

Kevin

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to [email protected]
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Reply via email to