Hi, Masanori, Yes, I noticed the similarity. I'm using Laurent's 'manual way' for now. I'll look at Alan's and Laurent's more concise solution in a few days. The "manual way" is easy to debug as all I have to do is println the intermediate results. Thanks. Tuba
2011/7/28 OGINO Masanori <masanori.og...@gmail.com> > Laurent's way and Alan's way have different surfaces, but same mean. > > (-> word fix-ou fix-ize) > (fix-ize (fix-ou word)) > > You can check it using clojure.walk/macroexpand-all. > > user=> (macroexpand-all '(-> "labour" fix-ou fix-ize)) > (fix-ize (fix-ou "labour")) > > Indeed you can choose only one way, I suggest considering two ways. > Sometimes using -> is easy to read, and sometimes it is hard to do. > (Readability is the matter in this case, right?) > > -- > Name: OGINO Masanori (荻野 雅紀) > E-mail: masanori.og...@gmail.com > > -- > 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 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