-
Notifications
You must be signed in to change notification settings - Fork 111
cljr promote function
Given this:
(map #(-> % (str "!") symbol) '[aww yeah])
And I place my cursor on symbol
and do cljr-promote-function
and rename %
to sym
:
(map (fn [sym] (-> sym (str "!") symbol)) '[aww yeah])
With a prefix it will promote the function literal all the way to a defn.
Given this:
(map (fn [sym] (-> sym (str "!") symbol)) '[aww yeah])
And I place my cursor on symbol
and do cljr-promote-function
and call the fn shout-it!
(defn shout-it!
[sym]
(-> sym (str "!") symbol))
(map shout-it! '[aww yeah])