On Monday, 27 October 2014, Roelof Wobben <rwob...@hotmail.com <javascript:_e(%7B%7D,'cvml','rwob...@hotmail.com');>> wrote: > > I expected the outcome : *octavia* > but I see the output : [{:death-year 2006, :name " > Octavia E. Butler", :birth-year 1947}] > > Roelof >
I see. You will not get octavia as an outcome. The presentation in iloveponies seems to be slightly misleading. In the evaluation model for Clojure (and the vast majority of peogramming languages), arguments are evaluated first, and the language does not keep track of which expression produced a value. What is important to understand is that octavia has been resolved (repmaced by its associated value) even before the value is bound to wild-seed. If this is not clear for you, I'd say you've reached the limit of hands-on learning and it's time for some theory. You really need to understand the evaluation model before going further. A free resource I'd recommend for that is Aphyr's tutorial: http://aphyr.com/posts/301-clojure-from-the-ground-up-welcome If you have any money available, I would highly recommend Brian Marick's Functional Programming for the Object Oriented Programmer. If you have no experience with OOP, you will probably have trouble understanding the points of chapters 4 and on, but even then, I think the book is worth buying for the first three chapters, which have a great explanation of Clojure's evaluation model. -- 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 --- You received this message because you are subscribed to the Google Groups "Clojure" group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.