ClojureDocs

Clojure/Conj 2026 — Charlotte, NC — Sept 30 - Oct 2 Learn More & Get Tickets →

Search results for query: pr

41 to 50 of 58 results. prev page | next page

  • extend-protocol

    clojure.core

    • (extend-protocol p & specs)

    Useful when you want to provide several implementations of the same protocol all at once. Takes a single protocol and the implementation of that protocol for one or more types. Expands into calls to extend-type: (extend-protocol Protocol AType (foo [x] ...) (bar [x y] ...) ...

  • get-proxy-class

    clojure.core

    • (get-proxy-class & bases)

    Takes an optional single class followed by zero or more interfaces. If not supplied class defaults to Object. Creates an returns an instance of a proxy class derived from the supplied classes. The resulting value is cached and used for any subsequent requests for the same class set. Returns...

    1 example · See also: clojure.core/construct-proxy
  • explain-printer

    clojure.spec.alpha

    • (explain-printer ed)

    Default printer for explain-data. nil indicates a successful validation.

    0 examples
  • print-throwable

    clojure.stacktrace

    • (print-throwable tr)

    Prints the class and message of a Throwable. Prints the ex-data map if present.

  • prewalk-replace

    clojure.walk

    • (prewalk-replace smap form)

    Recursively transforms form by replacing keys in smap with their values. Like clojure/replace but works on any data structure. Does replacement at the root of the tree first.

  • assert-predicate

    clojure.test

    • (assert-predicate msg form)

    Returns generic assertion code for any functional predicate. The 'expected' argument to 'report' will contains the original form, the 'actual' argument will contain the form with all its sub-forms evaluated. If the predicate returns false, the 'actual' form will be wrapped in (not...).

    0 examples
  • get-pretty-writer

    clojure.pprint

    • (get-pretty-writer writer)

    Returns the java.io.Writer passed in wrapped in a pretty writer proxy, unless it's already a pretty writer. Generally, it is unnecessary to call this function, since pprint, write, and cl-format all call it if they need to. However if you want the state to be preserved across calls, you will want ...

    0 examples
  • print-length-loop

    clojure.pprint

    • (print-length-loop bindings & body)

    A version of loop that iterates at most *print-length* times. This is designed for use in pretty-printer dispatch functions.

    1 example
  • print-stack-trace

    clojure.stacktrace

    • (print-stack-trace tr)
    • (print-stack-trace tr n)

    Prints a Clojure-oriented stack trace of tr, a Throwable. Prints a maximum of n stack frames (default: unlimited). Does not print chained exceptions (causes).

    2 examples · See also: clojure.core/catch, clojure.core/ex-info
  • print-cause-trace

    clojure.stacktrace

    • (print-cause-trace tr)
    • (print-cause-trace tr n)

    Like print-stack-trace but prints chained exceptions (causes).