On Thursday, July 5, 2012 11:52:52 PM UTC+2, Jacobo Polavieja wrote: > > Many thanks to you both Sean and Jeremy, I think I finally got it. > > After understanding it better I think most of my confussion comes from the > fact that in F# it's typical to "pipeline" and therefore we don't have to > define everything at once (specially the implicit values which are what > lost me). > In pseudo F# the flow would be something like: > > coll > |> mapFirst(mapSecond....) > |> filter > > At each step or pipe we can call the resulting value from the prior step > whatever we want (which would be the equivalent here to define [x] or > whatever instead of trying to use %) and the "flow" is like the opposite. > > Hope you don't mind me mentioning F#, it's just to clarify where my doubts > came from in case it helps anyone in the future. > > So... I can go on! Thanks a lot for the detailed answers, they were very > helpful. >
After this post my mind started thinking... Isn't there a way so I don't have to go "inside-out" thinking and be more like the pattern of first do f1 on x1, then apply f2 to the prior result, then do f3 to the prior result... Seems like the (->) gives some taste of what I'm looking for: http://stackoverflow.com/questions/6145002/operator-in-clojure So in short, is the function I had doubts with idiomatic clojure. Isn't there a simpler way? I have no doubt if there is the book didn't put it in any other way because it would involve concepts not yet explained, I'm just curious... Cheers! -- 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