Merge pull request #1250 from pothos/master
fix example in documentation to unquote in quasi quote
This commit is contained in:
commit
504e56361b
2
AUTHORS
2
AUTHORS
@ -76,4 +76,4 @@
|
||||
* Philip Xu <pyx@xrefactor.com>
|
||||
* Charles de Lacombe <ealhad@mail.com>
|
||||
* John Patterson <john@johnppatterson.com>
|
||||
|
||||
* Kai Lüke <kailueke@riseup.net>
|
@ -730,7 +730,7 @@ For example,
|
||||
.. code-block:: clj
|
||||
|
||||
=> (defn expensive-get-number [] (print "spam") 14)
|
||||
=> (defmacro triple-1 [n] `(+ n n n))
|
||||
=> (defmacro triple-1 [n] `(+ ~n ~n ~n))
|
||||
=> (triple-1 (expensive-get-number)) ; evals n three times
|
||||
spam
|
||||
spam
|
||||
|
Loading…
Reference in New Issue
Block a user