Macros
Reader
15Regex literal. #"pattern" compiles to java.util.regex.Pattern at read time.
reader-macroclojure.core
Var quote. #'foo resolves to the Var object itself.
reader-macroclojure.core
Anonymous function shorthand. #(+ %1 %2) expands to (fn [x y] (+ x y)).
reader-macroclojure.core
Reader conditional. #?(:clj expr :cljs expr) for .cljc files.
reader-macroclojure.core
Splicing reader conditional.
reader-macroclojure.core
Discard. #_form causes the reader to ignore the next form.
reader-macroclojure.core
Tagged literal for instants. #inst "2024-01-01".
reader-macroclojure.core
Tagged literal for UUIDs.
reader-macroclojure.core
Set literal. #{1 2 3} creates a persistent hash set.
reader-macroclojure.core
Quote. 'form expands to (quote form).
reader-macroclojure.core
Deref. @ref expands to (deref ref).
reader-macroclojure.core
Metadata. ^{:k v} form attaches metadata to the next form.
reader-macroclojure.core
Syntax quote. Resolves symbols to fully-qualified names; allows ~ and ~@.
reader-macroclojure.core
Unquote. Used inside syntax-quoted forms to evaluate an expression.
reader-macroclojure.core
Unquote-splicing. Splices a sequence into the surrounding form.
reader-macroclojure.core
For use in macros. argv is an argument list, as in defn. expr is a quoted expression using the symbols in argv. val...
functionclojure.template
Experimental - like defmacro, except defines a named function whose body is the expansion, calls to which may be expan...
macroclojure.core
Like defn, but the resulting function name is declared as a macro and will be used as a macro by the compiler when it ...
macroclojure.core
Repeatedly copies expr (in a do block) for each group of arguments in values. values are automatically partitioned by...
macroclojure.template
Returns a new symbol with a unique name. If a prefix string is supplied, the name is prefix# where # is some unique nu...
functionclojure.core
Repeatedly calls macroexpand-1 on form until it no longer represents a macro form, then returns it. Note neither ma...
functionclojure.core
If form represents a macro form, returns its expansion, else returns form.
functionclojure.core
Yields the unevaluated form.
special-formclojure.core