This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2024-02-01
Channels
- # aleph (6)
- # announcements (37)
- # aws (1)
- # beginners (67)
- # calva (9)
- # clerk (5)
- # clj-kondo (3)
- # clojure (19)
- # clojure-europe (40)
- # clojure-nl (1)
- # clojure-norway (36)
- # clojure-uk (5)
- # clojuredesign-podcast (7)
- # clojurescript (28)
- # datomic (9)
- # emacs (8)
- # figwheel-main (4)
- # fulcro (6)
- # hyperfiddle (19)
- # integrant (4)
- # java (9)
- # lsp (131)
- # malli (9)
- # missionary (85)
- # off-topic (13)
- # pathom (3)
- # polylith (11)
- # releases (1)
- # sci (4)
- # shadow-cljs (7)
- # specter (2)
- # vscode (1)
- # xtdb (2)
Hi! In Clojure, I can (str something)
to get a string of something. Is there a similar function in Emacs Lisp?
I found specific “type to string” functions:
(number-to-string 42)
;; => "42"
(symbol-name 'org-mode)
;; => "org-mode"
I looked quickly at https://github.com/magnars/s.el too, but didn’t find a clojure.core/str
replacement.You can use format to do most things, I think:
(format "%s" 42)
;; => "42"
Not sure if there is a more direct function I'm forgetting👍 1
Having had a bit of a search, prin1-to-string
looks like a good candidate, although it's not variadic
➕ 1
👍 1