Liking cljdoc? Tell your friends :D
Clojure only.

d-core.libs.dtap


dtapcljmacro

(dtap expr)
(dtap opts expr)

Macro wrapper for dtap* that captures the original form.

Usage: (dtap expr) (dtap opts expr)

For reusable taps: (fn [v] (dtap {:label "x"} v))

Macro wrapper for dtap* that captures the original form.

Usage:
  (dtap expr)
  (dtap opts expr)

For reusable taps:
  (fn [v] (dtap {:label "x"} v))
raw docstring

dtap*clj

(dtap* value)
(dtap* opts value)
(dtap* opts value form-str)

Pretty-print a value with colors. Returns the original value.

Options:

  • :label (any) Header label (printed with pr-str)
  • :header? (bool) Enable header line (default true)
  • :show-form? (bool) Show form when label is not provided (default true)
  • :prefix (string) Header prefix (default "dtap")
  • :indent (int) Indent size for multiline collections (default 2)
  • :max-depth (int) Max depth for nested collections (nil = unlimited)
  • :max-items (int) Max items per collection/map (nil = unlimited)
  • :width (int) Inline width hint (default 80)
  • :inline-count (int) Max items for inline collections (default 6)
  • :color? (bool) Enable ANSI colors (default true)
  • :colors (map) Style overrides (keyword -> color keyword or ANSI string) Styles: :header :bracket :map-key :string :number :keyword :nil :boolean :symbol :default
  • :tap? (bool) Also send value to tap> (default false)
  • :out (writer) Print to this writer instead of out
Pretty-print a value with colors. Returns the original value.

Options:
- :label (any)        Header label (printed with pr-str)
- :header? (bool)     Enable header line (default true)
- :show-form? (bool)  Show form when label is not provided (default true)
- :prefix (string)    Header prefix (default "dtap")
- :indent (int)       Indent size for multiline collections (default 2)
- :max-depth (int)    Max depth for nested collections (nil = unlimited)
- :max-items (int)    Max items per collection/map (nil = unlimited)
- :width (int)        Inline width hint (default 80)
- :inline-count (int) Max items for inline collections (default 6)
- :color? (bool)      Enable ANSI colors (default true)
- :colors (map)       Style overrides (keyword -> color keyword or ANSI string)
                      Styles: :header :bracket :map-key :string :number
                              :keyword :nil :boolean :symbol :default
- :tap? (bool)        Also send value to tap> (default false)
- :out (writer)       Print to this writer instead of *out*
raw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close