(register-print-handler! type handler)Register an extra print handler.
type must be a symbol of the fully qualified class name. handler is a
Puget handler function of two arguments, printer and value.
Register an extra print handler. `type` must be a symbol of the fully qualified class name. `handler` is a Puget handler function of two arguments, `printer` and `value`.
(type-name x)Get the type of the given object as a string. For Clojure, gets the name of
the class of the object. For ClojureScript, gets either the name attribute
or the protocol name if the name attribute doesn't exist.
Get the type of the given object as a string. For Clojure, gets the name of the class of the object. For ClojureScript, gets either the `name` attribute or the protocol name if the `name` attribute doesn't exist.
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 |