"Meikel Brandmeyer (kotarak)" <m...@kotka.de> writes:

>> The main difference is that I build up a new vector of functions
>> instead of a list of functions in order not to have to reverse it.
>>
>
> You should probably inline comp for your purposes. Note the reverse
> call there.
>
> https://github.com/clojure/clojure/blob/d0c380d9809fd242bec688c7134e900f0bbedcac/src/clj/clojure/core.clj#L2267

Oh, that's a pity.  I'd much vote for a left-to-right version
complementing the current right-to-left `comp`.

I also have at least one function in my code I know from the top of my
head where I reverse a seq of functions before feeding them to (apply
comp ...).  In my case, the seq of functions is usually user-supplied,
so probably rather small.

Bye,
Tassilo

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