Hi, on transducers generally, watch this https://www.youtube.com/watch?v=6mTbuzafcII .
This part tackles your questions on ordering https://www.youtube.com/watch?v=6mTbuzafcII#t=1531 . 2014-10-30 15:44 GMT+00:00 Mars0i <[email protected]>: > Caveat: I am still feeling around in the dark in my understanding of > transducers. What I write below may just convey how clueless I am. > > (Meta-caveat: I'm probably spitting into the wind. I should no doubt use > my time more wisely.) > > > Normal function composition is done starting from the right. This is > familiar from mathematics, other Lisps, most languages, and it's how > Clojure's function application and 'comp' work. > > Sometimes it's easier to understand composition going from left to right, > as in many natural languages and as in unix pipes, and Clojure provides > '->' and '->>' to do that. That's good. Best of both worlds. One thing I > like about these operators is that their name clearly indicates the > direction of function application. > > Transducers allow function composition with potential efficiency gains, > but apply functions starting from left to right. But *it does this using > the name 'comp'*, which otherwise applies functions from right to left. > What?? Doesn't that seem like a Bad Thing? Why not use a different name? > (It's like overloading the minus sign so that in some contexts, it > subtracts the first argument from the second.) > > (Is Clojure is getting too popular? Its essential features--prefix > notation, parentheses, purely functional operations, and laziness--aren't > doing enough to scare away Java programmers? :-) > > -- > You received this message because you are subscribed to the Google > Groups "Clojure" group. > To post to this group, send email to [email protected] > Note that posts from new members are moderated - please be patient with > your first post. > To unsubscribe from this group, send email to > [email protected] > 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 [email protected]. > For more options, visit https://groups.google.com/d/optout. > -- László Török Checkout justonemorepoint.com - Know your true value -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to [email protected] Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to [email protected] 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 [email protected]. For more options, visit https://groups.google.com/d/optout.
