(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 is a website building & hosting documentation for Clojure/Script libraries
× close