Meikel and eyeris, Thanks, that clarifies the usage of -> even multiple parameters.
IMHO, -> simplifies things where unary functions are involved and where the list-parens are absent, so that -> creates the list. In the other cases, the standard syntax is easier on the eye. Joshua On Sun, Mar 1, 2009 at 12:17 AM, eyeris <drewpvo...@gmail.com> wrote: > > You are wrong. Many writings use ,, as a place-holder for where -> is > placing the argument. Take Meikel's example above: > > (foo (bar (baz (frobnicate a-thing)) bla)) > > Becomes > > (-> a-thing frobnicate baz (bar bla) foo) > > So bar is a function of more than one argument. Re-written with place- > holders it would be: > > (-> a-thing (frobnicate ,,) (baz ,,) (bar ,, bla) (foo ,,)) > > Does that make it more clear? > > -Drew > > On Feb 28, 9:39 pm, Joshua Fox <joshuat...@gmail.com> wrote: > > -> confuses me: Does it treat functions with multiple parameters > different > > from functions with one parameter? Am I right that it can only be used > with > > the latter? > > Joshua > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---