A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/clojure-emacs/clj-refactor.el/wiki/cljr-unwind-thread below:

cljr unwind thread · clojure-emacs/clj-refactor.el Wiki · GitHub

uw Unwind thread

To start out enter:

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

If we think we went to far we can place the cursor somewhere inside the thread form and hit cljr-unwind-thread and we'll get:

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

There's also clj-unwind-all if we wanted to undo all the threading, instead of just one level.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4