Custom printing rules for standard objects.
Custom printing rules for standard objects.
(defprint Type value writer & body)Two in one: define a custom printing logic for both
print-method and print-dup multimethods.
Two in one: define a custom printing logic for both `print-method` and `print-dup` multimethods. - Type is class; - value is a binding symbol for a value of this type; - writer is a binding symbol for a Writer instance; - body is the writing logic.
(print-str-class Type)A shortcut that produces a string like: #SomeClass 'string value'
A shortcut that produces a string like: #SomeClass 'string value'
(print-str-tag Type tag)Like print-str-class but accepts a custom tag.
Like `print-str-class` but accepts a custom tag.
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 |