(defreader id transform)(defreader-n id transform)Defines and registers a "nestable tagged literal" reader macro which will transform the tagged form and hide the effects of nested hashtag expansions.
Defines and registers a "nestable tagged literal" reader macro which will transform
the tagged form and hide the effects of nested hashtag expansions.
* id - the name of the tag, e.g. p -> #p, foo/bar -> #foo/bar.
* transform - a 2 argument function. This function is used at macro-expansion,
so the usual macro rules apply. The first argument is the form
as seen by the compiler, including effects of nested hashtag
expansions. The second is the "original" form, as it would be seen
before expansion (and without any hashtags). Another way to think about
it is that the first form is the one you want to execute, while the
second is for display.(make-reader id transform hide-nested?)cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |