Skip to main content

Variables

  • *agent*

    The agent currently running an action on this thread, else nil

  • *alias-map*

    Map from ns alias to ns, if non-nil, it will be used to resolve read-time ns aliases instead of (ns-aliases *ns*). ...

  • *assert*

    When set to logical false, 'assert' will omit assertion checks in compiled code. Defaults to true.

  • *clojure-version*

    The version info for Clojure core, as a map containing :major :minor :incremental and :qualifier keys. Feature releas...

  • *command-line-args*

    A sequence of the supplied command line arguments, or nil if none were supplied

  • *compile-files*

    Set to true when compiling files, false otherwise.

  • *compile-path*

    Specifies the directory where 'compile' will write out .class files. This directory must be in the classpath for 'comp...

  • *compiler-options*

    A map of keys to options. Note, when binding dynamically make sure to merge with previous value. Supported options: ...

  • *data-readers*

    Map from reader tag symbols to data reader Vars. When Clojure starts, it searches for files named 'data_readers.clj' ...

  • *data-readers*

    Map from reader tag symbols to data reader Vars. Reader tags without namespace qualifiers are reserved for Clojure. ...

  • *default-data-reader-fn*

    When no data reader is found for a tag and *default-data-reader-fn* is non-nil, it will be called with two arguments, ...

  • *default-data-reader-fn*

    When no data reader is found for a tag and *default-data-reader-fn* is non-nil, it will be called with two arguments,...

  • *err*

    A java.io.Writer object representing standard error for print operations. Defaults to System/err, wrapped in a PrintW...

  • *file*

    The path of the file being evaluated, as a String. When there is no file, e.g. in the REPL, the value is not defined.

  • *flush-on-newline*

    When set to true, output will be flushed whenever a newline is printed. Defaults to true.

  • *force*

    Overrides the default rules for choosing between logging directly or via an agent. Defaults to nil. See log* for detai...

  • *in*

    A java.io.Reader object representing standard input for read operations. Defaults to System/in, wrapped in a LineNumb...

  • *load-tests*

    True by default. If set to false, no test functions will be created by deftest, set-test, or with-test. Use this to...

  • *logger-factory*

    An instance satisfying the clojure.tools.logging.impl/LoggerFactory protocol, which allows uniform access to an underl...

  • *logging-agent*

    The default agent used for performing logging when direct logging is disabled. See log* for details.

  • *match-lookup*

    Allow map matching syntax to check for IMatchLookup

  • *no-backtrack*

    Flag to optimize performance over code size.

  • *ns*

    A clojure.lang.Namespace object representing the current namespace.

  • *out*

    A java.io.Writer object representing standard output for print operations. Defaults to System/out, wrapped in an Outp...

  • *print-base*

    The base to use for printing integers and rationals.

  • *print-dup*

    When set to logical true, objects will be printed in a way that preserves their type when read in later. Defaults t...

  • *print-length*

    *print-length* controls how many items of each collection the printer will print. If it is bound to logical false, the...

  • *print-level*

    *print-level* controls how many levels deep the printer will print nested objects. If it is bound to logical false, th...

  • *print-meta*

    If set to logical true, when printing an object, its metadata will also be printed in a form that can be read back by ...

  • *print-miser-width*

    The column at which to enter miser style. Depending on the dispatch table, miser style add newlines in more places to t...

  • *print-namespace-maps*

    *print-namespace-maps* controls whether the printer will print namespace map literal syntax. It defaults to false, but...

  • *print-pprint-dispatch*

    The pretty print dispatch function. Use with-pprint-dispatch or set-pprint-dispatch to modify.

  • *print-pretty*

    Bind to true if you want write to use pretty printing

  • *print-radix*

    Print a radix specifier in front of integers and rationals. If *print-base* is 2, 8, or 16, then the radix specifier us...

  • *print-readably*

    When set to logical false, strings and characters will be printed with non-alphanumeric characters converted to the ap...

  • *print-right-margin*

    Pretty printing will try to avoid anything going beyond this column. Set it to nil to have pprint let the line be arbitr...

  • *print-suppress-namespaces*

    Don't print namespaces with symbols. This is particularly useful when pretty printing the results of macro expansions

  • *read-eval*

    Defaults to true (or value specified by system property, see below) ***This setting implies that the full power of the...

  • *read-eval*

    Defaults to true. ***WARNING*** This setting implies that the full power of the reader is in play, including s...

  • *recur-present*

    In the presence of recur we cannot apply code size optimizations

  • *repl*

    Bound to true in a repl thread

  • *stack-trace-depth*

    The maximum depth of stack traces to print when an Exception is thrown during a test. Defaults to nil, which means pr...

  • *syntax-check*

    Enable syntax check of match macros

  • *tx-agent-levels*

    The set of levels that will require using an agent when logging from within a running transaction. Defaults to #{:info...

  • *unchecked-math*

    While bound to true, compilations of +, -, *, inc, dec and the coercions will be done without overflow checks. While b...

  • *vector-type*

    Default vector type. Can be rebound allowing emission of custom inline code for vector patterns, for exampl...

  • *warn-on-reflection*

    When set to true, the compiler will emit warnings when reflection is needed to resolve Java method calls or field acce...

  • alter-var-root

    Atomically alters the root binding of var v by applying f to its current value plus any args

  • bound-fn

    Returns a function defined by the given fntail, which will install the same bindings in effect as in the thread at the...

  • bound-fn*

    Returns a function, which will install the same bindings in effect as in the thread at the time bound-fn* was called a...

  • declare

    defs the supplied var names with no bindings, useful for making forward declarations.

  • def

    Creates and interns a global var.

  • defonce

    defs name to have the root value of the expr iff the named var has no root value, else expr is unevaluated

  • get-thread-bindings

    Get a map with the Var/value pairs which is currently in effect for the current thread.

  • get-validator

    Gets the validator-fn for a var/ref/agent/atom.

  • intern

    Finds or creates a var named by the symbol name in the namespace ns (which can be a symbol or a namespace), setting it...

  • pop-thread-bindings

    Pop one set of bindings pushed with push-binding before. It is an error to pop bindings without pushing before.

  • push-thread-bindings

    WARNING: This is a low-level function. Prefer high-level macros like binding where ever possible. Takes a map of Va...

  • set-validator!

    Sets the validator-fn for a var/ref/agent/atom. validator-fn must be nil or a side-effect-free fn of one argument, whi...

  • var-get

    Gets the value in the var object

  • var-set

    Sets the value in the var object to val. The var must be thread-locally bound.

  • with-bindings

    Takes a map of Var/value pairs. Installs for the given Vars the associated values as thread-local bindings. Then execu...

  • with-bindings*

    Takes a map of Var/value pairs. Installs for the given Vars the associated values as thread-local bindings. Then calls...

  • binding

    binding => var-symbol init-expr Creates new bindings for the (already-existing) vars, with the supplied initial val...

  • if-let

    bindings => binding-form test If test is true, evaluates then with binding-form bound to the value of test, if not...

  • let

    binding => binding-form init-expr binding-form => name, or destructuring-form destructuring-form => map-destructure-...

  • when-let

    bindings => binding-form test When test is true, evaluates body with binding-form bound to the value of test

  • with-local-vars

    varbinding=> symbol init-expr Executes the exprs in a context in which the symbols are bound to vars with per-threa...

  • meta

    Returns the metadata of obj, returns nil if there is no metadata.

  • type

    Returns the :type metadata of x, or its Class if none

  • alter-meta!

    Atomically sets the metadata for a namespace/var/ref/agent/atom to be: (apply f its-current-meta args) f must be f...

  • vary-meta

    Returns an object of the same type and value as obj, with (apply f (meta obj) args) as its metadata.

  • with-meta

    Returns an object of the same type and value as obj, with map m as its metadata.

  • add-tap

    adds f, a fn of one argument, to the tap set. This function will be called with anything sent via tap>. This function ...

  • add-watch

    Adds a watch function to an agent/atom/var/ref reference. The watch fn must be a fn of 4 args: a key, the reference, i...

  • remove-tap

    Remove f from the tap set.

  • remove-watch

    Removes a watch (set by add-watch) from a reference

  • tap>

    sends x to any taps. Will not block. Returns true if there was room in the queue, false if not (dropped).