let-> seems to rebind the same name repeatedly, so that probably wouldn't help.

You could easily create a macro that bound a new name if it encounters
a literal vector in the arguments and evaluated the remaining forms in
the context of those bindings:

(somevariantof-> url
    a
    [file b]
    c
    d
    (f (extension file)))

Or something like that.

On Thu, Oct 25, 2012 at 5:53 PM, Ambrose Bonnaire-Sergeant
<abonnaireserge...@gmail.com> wrote:
> I haven't tried them, but you may be in luck for Clojure 1.5.
>
> https://github.com/clojure/clojure/commit/026691e2f6cc8d1bab4feb7e577530a9f06fd85e
>
> Thanks,
> Ambrose
>
>
> On Fri, Oct 26, 2012 at 8:24 AM, Jason Bennett <jaso...@gmail.com> wrote:
>>
>>
>> Let's say I have a set of thread-first calls:
>>
>> (-> url
>>      a
>>      b
>>      c
>>      d
>>      e)
>>
>> And let's say that I need to process and save the result of function b as
>> a second parameter to function e (function b returns a file, and function e
>> needs the extention of that file). How would I drop a let into the middle of
>> the thread calls without making a large mess? The only suggestion I've
>> gotten so far is to move calls A and B into a let before the thread-first so
>> I can process their return values.
>>
>> jason
>>
>> --
>> 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
>
>
> --
> 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



-- 
Ben Wolfson
"Human kind has used its intelligence to vary the flavour of drinks,
which may be sweet, aromatic, fermented or spirit-based. ... Family
and social life also offer numerous other occasions to consume drinks
for pleasure." [Larousse, "Drink" entry]

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