Don't forget about the third piece of the puzzle, #() (and fn).
Whenever I need to create a function using ->, I just do #(-> % ...).
It's about as much typing as (comp ...).
Personally, I can go either way—I just kind of wish that there was a
consistent practice for the placement of the most important argument,
whether it's first or last, in both core and contrib.
Am 17.10.2009 um 13:25 schrieb James Reeves:
> Well, defining the "most important argument" can be tricky. However,
> it would be nice if there were map and filter variants that could be
> used with ->.
There is also ->>.
(->> some-seq
(filter predicate)
(map function)
(remove other-predicate))
Sincerely
Meikel