Skip to content

Commit 7484b59

Browse files
committed
std: Add qs (quote string) support
1 parent 2faf2e4 commit 7484b59

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

core/src/ys/std.clj

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -537,11 +537,13 @@
537537

538538
(defmacro q
539539
([x] `(quote ~x))
540-
([x & xs] `(quote [~x ~@xs])))
540+
([x & xs] `(quote (~x ~@xs))))
541541

542542
(defmacro ql [& xs] `(list ~@xs))
543543
(defmacro qm [& xs] `(hash-map ~@xs))
544544
(defmacro qo [& xs] `(omap ~@xs))
545+
(defmacro qs [& xs]
546+
`(clojure.string/join " " '(~@xs)))
545547
(defmacro qv [& xs] `(vector ~@xs))
546548

547549
(defn qr [S] (re-pattern S))

0 commit comments

Comments
 (0)