Very nice!

One little problem I had while learning this operator was realizing that it 
was a macro and not simply a form of function composition (like an inverted 
'comp'). So to convert something like

((comp #(+ % 1) #(+ % 2)) 0)

to use thrush you would need to write

(-> 0 (+ 2) (+ 1))

and NOT

(-> 0 #(+ % 2) #(+ % 1))



On Friday, June 8, 2012 3:02:50 PM UTC-3, fenton wrote:
>
> I created a tutorial explaining what the thrush -> and ->> operator is.
>
>
> https://github.com/ftravers/PublicDocumentation/blob/master/clojure-thrush.md
>
> My tutorials are aimed at people who appreciate VERY explicit 
> explanations, which I think there is a bit of a gap among current internet 
> available literature.
>

-- 
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

Reply via email to