This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-04-13
Channels
- # aleph (1)
- # beginners (105)
- # boot (6)
- # cider (9)
- # cljs-dev (61)
- # cljsrn (59)
- # clojure (132)
- # clojure-germany (1)
- # clojure-italy (6)
- # clojure-russia (18)
- # clojure-spec (1)
- # clojure-uk (58)
- # clojurescript (56)
- # core-async (1)
- # cursive (17)
- # datomic (20)
- # docs (1)
- # duct (5)
- # editors (1)
- # emacs (7)
- # events (2)
- # figwheel (7)
- # fulcro (30)
- # graphql (8)
- # jobs (3)
- # leiningen (23)
- # luminus (14)
- # mount (6)
- # off-topic (41)
- # onyx (14)
- # protorepl (2)
- # re-frame (7)
- # reagent (32)
- # shadow-cljs (236)
- # tools-deps (92)
- # unrepl (8)
- # vim (60)
- # yada (1)
Thanks, I tweaked it to do what I wanted:
(defun ask-for-variable-names (names)
(interactive "sEnter the variable names: ")
(let ((bindings (mapcar (lambda (name)
(format "(def %s %s)" name name))
(s-split " " names))))
(insert-before-markers (string-join bindings "\n"))))
Works perfectly! 😄So I use this when I basically want to capture one or several values in a running program. Usually these are either: - too big to build by hand 😄 - in a running prod system 🤫