Sure? The semantics of the default value corresponds to a 'if', doesn't it? >From this viewpoint, the default value is in tail position. And why does the non-tailrecursive version not run as expected?
Dominikus Am Freitag, 27. April 2012 16:45:44 UTC+2 schrieb Meikel Brandmeyer (kotarak): > > Hi, > > (defn fix2 [f x] (let [v (f x)] ({x x} v (recur f v)))) > > recur is not in the tail position. The "call" to the map is the tail call. > So the result is as expected. > > Kind regards, > Meikel > > -- 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 Note that posts from new members are moderated - please be patient with your first post. 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