cljr thread last all - clojure-emacs/clj-refactor.el GitHub Wiki

tl Thread last all

Start with:

(map square (filter even? [1 2 3 4 5]))

Put your cursor in front of the s-exp, and call cljr-thread-last-all:

(->> [1 2 3 4 5]
     (filter even?)
     (map square))

There is a corresponding cljr-thread-first-all as well.

To revert this, there's cljr-unwind to unwind one step at a time. Or there's cljr-unwind-all to unwind the entire expression at once.