mirror of
https://github.com/janet-lang/janet
synced 2025-04-28 13:43:19 +00:00
Update doc for qq.
This commit is contained in:
parent
52c919d96f
commit
567c4b94ba
@ -1334,7 +1334,11 @@ value, one key will be ignored."
|
|||||||
(sort (keys symbol-set)))
|
(sort (keys symbol-set)))
|
||||||
|
|
||||||
(defmacro qq
|
(defmacro qq
|
||||||
"Quasiquote."
|
"Quasiquote. Similar to quote, but allows unquoting
|
||||||
|
from within a nested form. Use the (uq x) form to unquote
|
||||||
|
a form x, or use (uqs x) to do unquote splicing. In a splicing
|
||||||
|
unquote, x should be an array or tuple which will be inserted into
|
||||||
|
the form the is the parent of the (uqs x) form."
|
||||||
[x]
|
[x]
|
||||||
(defn- uqs? [x]
|
(defn- uqs? [x]
|
||||||
(and (tuple? x) (= x@0 'uqs)))
|
(and (tuple? x) (= x@0 'uqs)))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user