if you come from the haskell world, it is like . piplining - but in reverse order I needed some time to get used to it but I really like -> ->> as-> ... to structure my code. It helps to see the sequence of functions that operate on your data
On Wed, Apr 3, 2013 at 11:05 PM, Alan Malloy <a...@malloys.org> wrote: > Not even that: -> is not a function composition operator at all, but a > form-rewriting macro. You can perfectly well write (-> [x xs] (for (inc > x))) to get (for [x xs] (inc x)), and that is not composing any functions. > The two things are entirely separate. > > > On Wednesday, April 3, 2013 12:45:55 PM UTC-7, Marko Topolnik wrote: >> >> I guess you mean the monadic bind operation, but -> is not it. The only >> conceptual connection between *bind* and -> is that they are both some >> kind of function composition operators. >> >> -marko >> >> On Wednesday, April 3, 2013 8:21:43 PM UTC+2, Plinio Balduino wrote: >>> >>> Hi there >>> >>> Is it correct to say that -> operator is a kind of monad in Clojure? >>> >>> Thank you in advance. >>> >>> Plínio Balduino >>> >> -- > -- > 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/groups/opt_out. > > > -- -- 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/groups/opt_out.