By popular demand (well at least two requests), pallet.thread-expr is now
an independent lib, extracted from pallet.
The library provides a number of macros for use within a -> expression.
A couple of examples:
(-> 2
(arg-> [x]
(* (inc x))))
=> 6
(-> 1
(for-> [x [1 2 3]]
(+ x)))
=> 7
Github: https://github.com/pallet/thread-expr
Autodoc: http://pallet.github.com/thread-expr/autodoc/index.html
Marginalia: http://pallet.github.com/thread-expr/marginalia/uberdoc.html
--
Hugo Duncan
--
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