ClojureDocs

Search results for query: pr

51 to 60 of 71 results. prev page | next page

  • 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).

  • print-diagnostics

    clojure.test.tap

    • (print-diagnostics data)

    0 examples
  • with-project-root

    clojure.tools.build.api

    • (with-project-root path & forms)

    Execute forms in a bound project path (string) other than the default (".")

    0 examples
  • set-project-root!

    clojure.tools.build.api

    • (set-project-root! root)

    Set *project-root* dir (default is ".")

    0 examples