On Sun, Feb 1, 2009 at 9:35 PM, e <evier...@gmail.com> wrote: > This may be obvious to others, but what's the motivation behind it? Is it > that we are very concerned about combatting the criticism that lisp has too > many parens?
The -> macro is simply an excellent tool for drilling into nested structures and/or piping some value through a list of methods and functions. It works very well indeed when mixed with doto - especially if you have to work with Swing or other component'ish frameworks. > > > On Sun, Feb 1, 2009 at 3:09 PM, kkw <kevin.k....@gmail.com> wrote: >> >> Hi sun, >> >> I thought this question looked familiar. I found some answers here >> also: >> >> >> http://groups.google.com/group/clojure/browse_thread/thread/1f21663ea1ae9f58/ >> >> Kev >> >> On Feb 2, 2:29 am, Adrian Cuthbertson <adrian.cuthbert...@gmail.com> >> wrote: >> > Sorry! That should have read; >> > (-> m :one :b) >> > 2 >> > >> > >> > >> > On Sun, Feb 1, 2009 at 5:13 PM, e <evier...@gmail.com> wrote: >> > > I was able to work through the first two examples, and thanks for >> > > those. I >> > > will have to study maps more, I guess, to understand the last one. I >> > > don't >> > > know where 'x' came from: >> > >> > >> user=> (-> x :one :b) >> > >> 2- Hide quoted text - >> > >> > - Show quoted text - >> > > > > > -- Venlig hilsen / Kind regards, Christian Vest Hansen. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---