On Fri, 04 Feb 2011 15:05:39 -0500, B Smith-Mannschott <bsmith.o...@gmail.com> wrote:

What should I name this thing? I'm concerned that "thread" is
confusing due to its dual meaning. let seems in line with clojure
conventions.

(thread-let [x ...] ...)
(thread-with [x ...] ...)
(thread-through [x ...] ...)
(let-> [x ...] ...)


I used let-> for a slightly different version of this in pallet

(-> 3
  (let-> [x 1 y 2]
    (+ x y)))
 => 6

which enables a general let in the middle of a threaded expression.

https://github.com/pallet/pallet/blob/master/src/pallet/thread_expr.clj

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

Reply via email to