In case of a named anonymous function the name is only bound in the lexical scope of the anonymous function being defined.
This is useful when defining recursive anonymous functions. Sent from phone. Please excuse brevity. On 31 Aug 2012 21:22, "Erlis Vidal" <[email protected]> wrote: > Hi guys, > > I've been reading but I'm still confused about the difference between an > anonymous function with name vs a defn function > > (fn my-func1[x] x) > > (defn my-func2[x] x) > > Thanks, > Erlis > > -- > 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 -- 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
