Skip to main content

All Functions

1554 entries

#

  • #""

    Regex literal. #"pattern" compiles to java.util.regex.Pattern at read time.

  • #'

    Var quote. #'foo resolves to the Var object itself.

  • #()

    Anonymous function shorthand. #(+ %1 %2) expands to (fn [x y] (+ x y)).

  • #?

    Reader conditional. #?(:clj expr :cljs expr) for .cljc files.

  • #?@

    Splicing reader conditional.

  • #_

    Discard. #_form causes the reader to ignore the next form.

  • #inst

    Tagged literal for instants. #inst "2024-01-01".

  • #uuid

    Tagged literal for UUIDs.

  • #{}

    Set literal. #{1 2 3} creates a persistent hash set.

'

  • '

    Quote. 'form expands to (quote form).

*

  • *

    Returns the product of nums. (*) returns 1. Does not auto-promote longs, will throw on overflow. See also: *'

  • *'

    Returns the product of nums. (*') returns 1. Supports arbitrary precision. See also: *

  • *1

    bound in a repl thread to the most recent value printed

  • *2

    bound in a repl thread to the second most recent value printed

  • *3

    bound in a repl thread to the third most recent value printed

  • *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,...

  • *e

    bound in a repl thread to the most recent exception caught by the repl

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

+

  • +

    Returns the sum of nums. (+) returns 0. Does not auto-promote longs, will throw on overflow. See also: +'

  • +'

    Returns the sum of nums. (+') returns 0. Supports arbitrary precision. See also: +

-

  • -

    If no ys are supplied, returns the negation of x, else subtracts the ys from x and returns the result. Does not auto-p...

  • -'

    If no ys are supplied, returns the negation of x, else subtracts the ys from x and returns the result. Supports arbitr...

  • ->

    Threads the expr through the forms. Inserts x as the second item in the first form, making a list of it if it is not a...

  • ->>

    Threads the expr through the forms. Inserts x as the last item in the first form, making a list of it if it is not a ...

  • ->AppPattern

    Positional factory function for class clojure.core.match.AppPattern.

  • ->ArrayChunk

    Positional factory function for class clojure.core.ArrayChunk.

  • ->AsmReflector

    Positional factory function for class clojure.reflect.AsmReflector.

  • ->BasicCache

    Positional factory function for class clojure.core.cache.BasicCache.

  • ->BindNode

    Positional factory function for class clojure.core.match.BindNode.

  • ->Cat

    Positional factory function for class clojure.core.reducers.Cat.

  • ->CDataEvent

    Positional factory function for class clojure.data.xml.event.CDataEvent.

  • ->CharsEvent

    Positional factory function for class clojure.data.xml.event.CharsEvent.

  • ->CommentEvent

    Positional factory function for class clojure.data.xml.event.CommentEvent.

  • ->Constructor

    Positional factory function for class clojure.reflect.Constructor.

  • ->Eduction

    Positional factory function for class clojure.core.Eduction.

  • ->EmptyElementEvent

    Positional factory function for class clojure.data.xml.event.EmptyElementEvent.

  • ->FailNode

    Positional factory function for class clojure.core.match.FailNode.

  • ->Field

    Positional factory function for class clojure.reflect.Field.

  • ->FIFOCache

    Positional factory function for class clojure.core.cache.FIFOCache.

  • ->FnCache

    Positional factory function for class clojure.core.cache.FnCache.

  • ->GuardPattern

    Positional factory function for class clojure.core.match.GuardPattern.

  • ->JavaReflector

    Positional factory function for class clojure.reflect.JavaReflector.

  • ->LeafNode

    Positional factory function for class clojure.core.match.LeafNode.

  • ->LIRSCache

    Positional factory function for class clojure.core.cache.LIRSCache.

  • ->LiteralPattern

    Positional factory function for class clojure.core.match.LiteralPattern.

  • ->LRUCache

    Positional factory function for class clojure.core.cache.LRUCache.

  • ->LUCache

    Positional factory function for class clojure.core.cache.LUCache.

  • ->MapKeyPattern

    Positional factory function for class clojure.core.match.MapKeyPattern.

  • ->MapPattern

    Positional factory function for class clojure.core.match.MapPattern.

  • ->Method

    Positional factory function for class clojure.reflect.Method.

  • ->OrPattern

    Positional factory function for class clojure.core.match.OrPattern.

  • ->PatternMatrix

    Positional factory function for class clojure.core.match.PatternMatrix.

  • ->PatternRow

    Positional factory function for class clojure.core.match.PatternRow.

  • ->PersistentPriorityMap

    Positional factory function for class clojure.data.priority_map.PersistentPriorityMap.

  • ->PluggableMemoization

    Positional factory function for class clojure.core.memoize.PluggableMemoization.

  • ->PredicatePattern

    Positional factory function for class clojure.core.match.PredicatePattern.

  • ->QNameEvent

    Positional factory function for class clojure.data.xml.event.QNameEvent.

  • ->ReaderPBR

    Positional factory function for class clojure.data.json.ReaderPBR.

  • ->RestPattern

    Positional factory function for class clojure.core.match.RestPattern.

  • ->RetryingDelay

    Positional factory function for class clojure.core.memoize.RetryingDelay.

  • ->SeqPattern

    Positional factory function for class clojure.core.match.SeqPattern.

  • ->SoftCache

    Positional factory function for class clojure.core.cache.SoftCache.

  • ->StartElementEvent

    Positional factory function for class clojure.data.xml.event.StartElementEvent.

  • ->StringPBR

    Positional factory function for class clojure.data.json.StringPBR.

  • ->SwitchNode

    Positional factory function for class clojure.core.match.SwitchNode.

  • ->TTLCacheQ

    Positional factory function for class clojure.core.cache.TTLCacheQ.

  • ->Vec

    Positional factory function for class clojure.core.Vec.

  • ->VecNode

    Positional factory function for class clojure.core.VecNode.

  • ->VecSeq

    Positional factory function for class clojure.core.VecSeq.

  • ->VectorPattern

    Positional factory function for class clojure.core.match.VectorPattern.

  • ->WildcardPattern

    Positional factory function for class clojure.core.match.WildcardPattern.

  • -write

    Print object to Appendable out as JSON

.

  • .

    Host interop: field access or method call.

  • ..

    form => fieldName-symbol or (instanceMethodName-symbol args*) Expands into a member access (.) of the first member on...

/

  • /

    If no denominators are supplied, returns 1/numerator, else returns numerator divided by all of the denominators.

<

  • <

    Returns non-nil if nums are in monotonically increasing order, otherwise false.

  • <!

    takes a val from port. Must be called inside a (go ...) block. Will return nil if closed. Will park if nothing is avai...

  • <!!

    takes a val from port. Will return nil if closed. Will block if nothing is available. Not intended for use in direct...

  • <=

    Returns non-nil if nums are in monotonically non-decreasing order, otherwise false.

=

  • =

    Equality. Returns true if x equals y, false if not. Same as Java x.equals(y) except it also works for nil, and compare...

  • ==

    Returns non-nil if nums all have the equivalent value (type-independent), otherwise false

>

  • >

    Returns non-nil if nums are in monotonically decreasing order, otherwise false.

  • >!

    puts a val into port. nil values are not allowed. Must be called inside a (go ...) block. Will park if no buffer space...

  • >!!

    puts a val into port. nil values are not allowed. Will block if no buffer space is available. Returns true unless port...

  • >=

    Returns non-nil if nums are in monotonically non-increasing order, otherwise false.

@

  • @

    Deref. @ref expands to (deref ref).

A

  • abs

    Returns the absolute value of a. If a is Long/MIN_VALUE => Long/MIN_VALUE If a is a double and zero => +0.0 If a i...

  • accessor

    Returns a fn that, given an instance of a structmap with the basis, returns the value at the key. The key must be in ...

  • aclone

    Returns a clone of the Java array. Works on arrays of known types.

  • acos

    Returns the arc cosine of a, in the range 0.0 to pi. If a is ##NaN or |a|>1 => ##NaN See: https://docs.oracle.com/ja...

  • add-exact

    Returns the sum of x and y, throws ArithmeticException on overflow. See: https://docs.oracle.com/javase/8/docs/api/jav...

  • add-lib

    Given a lib that is not yet on the repl classpath, make it available by downloading the library if necessary and addin...

  • add-libs

    Given lib-coords, a map of lib to coord, will resolve all transitive deps for the libs together and add them to the re...

  • add-local-javadoc

    Adds to the list of local Javadoc paths.

  • add-remote-javadoc

    Adds to the list of remote Javadoc URLs. package-prefix is the beginning of the package name that has docs at this UR...

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

  • admix

    Adds ch as an input to the mix

  • agent

    Creates and returns an agent with an initial value of state and zero or more options (in any order): :meta metadata...

  • agent-error

    Returns the exception thrown during an asynchronous action of the agent if the agent is failed. Returns nil if the ag...

  • aget

    Returns the value at the index/indices. Works on Java arrays of all types.

  • aggregate-xmlns

    Put all occurring xmlns into the root

  • alength

    Returns the length of the Java array. Works on arrays of all types.

  • alias

    Add an alias in the current namespace to another namespace. Arguments are two symbols: the alias to be used, and the...

  • alias-uri

    Define a Clojure namespace aliases for xmlns uris. This sets up the current namespace for reading qnames denoted with...

  • all-ns

    Returns a sequence of all namespaces.

  • alt!

    Makes a single choice between one of several channel operations, as if by alts!, returning the value of the result exp...

  • alt!!

    Like alt!, except as if by alts!!, will block until completed, and not intended for use in (go ...) blocks.

  • alter

    Must be called in a transaction. Sets the in-transaction-value of ref to: (apply fun in-transaction-value-of-ref ar...

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

  • alter-var-root

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

  • alts!

    Completes at most one of several channel operations. Must be called inside a (go ...) block. ports is a vector of chan...

  • alts!!

    Like alts!, except takes will be made as if by <!!, and puts will be made as if by >!!, will block until completed. ...

  • amap

    Maps an expression across an array a, using an index named idx, and return value named ret, initialized to a clone of ...

  • ancestors

    Returns the immediate and indirect parents of tag, either via a Java type inheritance relationship or a relationship e...

  • and

    Evaluates exprs one at a time, from left to right. If a form returns logical false (nil or false), and returns that va...

  • any?

    Returns true given any argument.

  • append!

    .adds x to acc and returns acc

  • append-child

    Inserts the item as the rightmost child of the node at this loc, without moving

  • apply

    Applies fn f to the argument list formed by prepending intervening arguments to args.

  • apply-template

    For use in macros. argv is an argument list, as in defn. expr is a quoted expression using the symbols in argv. val...

  • apropos

    Given a regular expression or stringable thing, return a seq of all public definitions in all currently-loaded namespace...

  • are

    Checks multiple assertions with a template expression. See clojure.template/do-template for an explanation of templa...

  • areduce

    Reduces an expression across an array a, using an index named idx, and return value named ret, initialized to init, se...

  • array-map

    Constructs an array-map. If any keys are equal, they are handled as if by repeated uses of assoc.

  • as->

    Binds name to expr, evaluates the first form in the lexical context of that binding, then binds name to that result, r...

  • as-file

    Coerce argument to a file.

  • as-relative-path

    Take an as-file-able thing and return a string if it is a relative path, else IllegalArgumentException.

  • as-url

    Coerce argument to a URL.

  • aset

    Sets the value at the index/indices. Works on Java arrays of reference types. Returns val.

  • aset-boolean

    Sets the value at the index/indices. Works on arrays of boolean. Returns val.

  • aset-byte

    Sets the value at the index/indices. Works on arrays of byte. Returns val.

  • aset-char

    Sets the value at the index/indices. Works on arrays of char. Returns val.

  • aset-double

    Sets the value at the index/indices. Works on arrays of double. Returns val.

  • aset-float

    Sets the value at the index/indices. Works on arrays of float. Returns val.

  • aset-int

    Sets the value at the index/indices. Works on arrays of int. Returns val.

  • aset-long

    Sets the value at the index/indices. Works on arrays of long. Returns val.

  • aset-short

    Sets the value at the index/indices. Works on arrays of short. Returns val.

  • asin

    Returns the arc sine of an angle, in the range -pi/2 to pi/2. If a is ##NaN or |a|>1 => ##NaN If a is zero => zero w...

  • assert

    Evaluates expression x and throws an AssertionError with optional message if x does not evaluate to logical true. A...

  • assert-any

    Returns generic assertion code for any test, including macros, Java method calls, or isolated symbols.

  • assert-predicate

    Returns generic assertion code for any functional predicate. The 'expected' argument to 'report' will contains the or...

  • assoc

    assoc[iate]. When applied to a map, returns a new map of the same (hashed/sorted) type, that contains the mapping of...

  • assoc!

    When applied to a transient map, adds mapping of key(s) to val(s). When applied to a transient vector, sets the val at...

  • assoc-in

    Associates a value in a nested associative structure, where ks is a sequence of keys and v is the new value and return...

  • associative?

    Returns true if coll implements Associative

  • atan

    Returns the arc tangent of a, in the range of -pi/2 to pi/2. If a is ##NaN => ##NaN If a is zero => zero with the sa...

  • atan2

    Returns the angle theta from the conversion of rectangular coordinates (x, y) to polar coordinates (r, theta). Compute...

  • atom

    Creates and returns an Atom with an initial value of x and zero or more options (in any order): :meta metadata-map ...

  • await

    Blocks the current thread (indefinitely!) until all actions dispatched thus far, from this thread or agent, to the age...

  • await-for

    Blocks the current thread until all actions dispatched thus far (from this thread or agent) to the agents have occurre...

B

  • backtrack

    Pre-allocated exception used for backtracing

  • bases

    Returns the immediate superclass and direct interfaces of c, if any

  • basic-cache-factory

    Returns a pluggable basic cache initialized to `base`

  • bean

    Takes a Java object and returns a read-only implementation of the map abstraction based upon its JavaBean properties.

  • bigdec

    Coerce to BigDecimal

  • bigint

    Coerce to BigInt

  • biginteger

    Coerce to BigInteger

  • binding

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

  • bit-and

    Bitwise and

  • bit-and-not

    Bitwise and with complement

  • bit-clear

    Clear bit at index n

  • bit-flip

    Flip bit at index n

  • bit-not

    Bitwise complement

  • bit-or

    Bitwise or

  • bit-set

    Set bit at index n

  • bit-shift-left

    Bitwise shift left

  • bit-shift-right

    Bitwise shift right

  • bit-test

    Test bit at index n

  • bit-xor

    Bitwise exclusive or

  • blank?

    True if s is nil, empty, or contains only whitespace.

  • boolean

    Coerce to boolean

  • boolean-array

    Creates an array of booleans

  • boolean?

    Return true if x is a Boolean

  • booleans

    Casts to boolean[]

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

  • bound?

    Returns true if all of the vars provided as arguments have any bound value, root or thread-local. Implies that deref'...

  • bounded-count

    If coll is counted? returns its count, else will count at most the first n elements of coll using its seq

  • branch?

    Returns true if the node at loc is a branch

  • browse-url

    Open url in a browser

  • buffer

    Returns a fixed buffer of size n. When full, puts will block/park.

  • build-memoizer

    Builds a function that, given a function, returns a pluggable memoized version of it. `build-memoizer` takes a cache...

  • butlast

    Return a seq of all but the last item in coll, in linear time

  • byte

    Coerce to byte

  • byte-array

    Creates an array of bytes

  • bytes

    Casts to bytes[]

  • bytes?

    Return true if x is a byte array

C

  • CacheProtocol

    This is the protocol describing the basic cache capability.

  • capitalize

    Converts first character of the string to upper-case, all other characters to lower-case.

  • case

    Takes an expression, and a set of clauses. Each clause can take the form of either: test-constant result-expr (...

  • cast

    Throws a ClassCastException if x is not a c, else returns x.

  • cat

    A transducer which concatenates the contents of each input, which must be a collection, into the reduction.

  • cat

    A high-performance combining fn that yields the catenation of the reduced values. The result is reducible, foldable, s...

  • catch

    Catch clause inside try.

  • cbrt

    Returns the cube root of a. If a is ##NaN => ##NaN If a is ##Inf or ##-Inf => a If a is zero => zero with sign mat...

  • cdata

    Create a CData node

  • ceil

    Returns the smallest double greater than or equal to a, and equal to a mathematical integer. If a is ##NaN or ##Inf ...

  • chan

    Creates a channel with an optional buffer, an optional transducer (like (map f), (filter p) etc or a composition there...

  • char

    Coerce to char

  • char-array

    Creates an array of chars

  • char-escape-string

    Returns escape string for char or nil if none

  • char-name-string

    Returns name string for char or nil if none

  • char?

    Return true if x is a Character

  • chars

    Casts to chars[]

  • children

    Returns a seq of the children of node at loc, which must be a branch

  • cl-format

    An implementation of a Common Lisp compatible format function. cl-format formats its arguments to an output stream or st...

  • class

    Returns the Class of x

  • class?

    Returns true if x is an instance of Class

  • classpath

    Returns a sequence of File objects of the elements on the classpath. Defaults to searching for instances of java.net...

  • classpath-directories

    Returns a sequence of File objects for the directories on classpath.

  • classpath-jarfiles

    Returns a sequence of JarFile objects for the JAR files on classpath.

  • clojure-version

    Returns clojure version as a printable string.

  • close!

    Closes a channel. The channel will no longer accept any puts (they will be ignored). Data in the channel remains avail...

  • code-dispatch

    The pretty print dispatch function for pretty printing Clojure code.

  • Coercions

    Coerce between various 'resource-namish' things.

  • coll?

    Returns true if x implements IPersistentCollection

  • CollReduce

    Protocol for collection types that can implement reduce faster than first/next recursion. Called by clojure.core/reduc...

  • comment

    Ignores body, yields nil

  • commute

    Must be called in a transaction. Sets the in-transaction-value of ref to: (apply fun in-transaction-value-of-ref ar...

  • comp

    Takes a set of functions and returns a fn that is the composition of those fns. The returned fn takes a variable numb...

  • comparator

    Returns an implementation of java.util.Comparator based upon pred.

  • compare

    Comparator. Returns a negative number, zero, or a positive number when x is logically 'less than', 'equal to', or 'gre...

  • compare-and-set!

    Atomically sets the value of atom to newval if and only if the current value of the atom is identical to oldval. Retur...

  • compile

    Compiles the namespace named by the symbol lib into a set of classfiles. The source for the lib must be in a proper ...

  • complement

    Takes a fn f and returns a fn that takes the same arguments as f, has the same effects, if any, and returns the opposi...

  • completing

    Takes a reducing function f of 2 args and returns a fn suitable for transduce by adding an arity-1 signature that call...

  • compose-fixtures

    Composes two fixture functions, creating a new fixture function that combines their behavior.

  • concat

    Returns a lazy seq representing the concatenation of the elements in the supplied colls.

  • cond

    Takes a set of test/expr pairs. It evaluates each test one at a time. If a test returns logical true, cond evaluates ...

  • cond->

    Takes an expression and a set of test/form pairs. Threads expr (via ->) through each form for which the corresponding ...

  • cond->>

    Takes an expression and a set of test/form pairs. Threads expr (via ->>) through each form for which the corresponding...

  • condp

    Takes a binary predicate, an expression, and a set of clauses. Each clause can take the form of either: test-expr r...

  • conj

    conj[oin]. Returns a new collection with the xs 'added'. (conj nil item) returns (item). (conj coll) returns col...

  • conj!

    Adds x to the transient collection, and return coll. The 'addition' may happen at different 'places' depending on the ...

  • cons

    Returns a new seq where x is the first element and seq is the rest.

  • constantly

    Returns a function that takes any number of arguments and returns x.

  • construct-proxy

    Takes a proxy class and any arguments for its superclass ctor and creates and returns an instance of the proxy.

  • contains?

    Returns true if key is present in the given collection, otherwise returns false. Note that for numerically indexed co...

  • copy

    Copies input to output. Returns nil or throws IOException. Input may be an InputStream, Reader, File, byte[], char[],...

  • copy-sign

    Returns a double with the magnitude of the first argument and the sign of the second. See: https://docs.oracle.com/j...

  • cos

    Returns the cosine of an angle. If a is ##NaN, ##-Inf, ##Inf => ##NaN See: https://docs.oracle.com/javase/8/docs/api...

  • cosh

    Returns the hyperbolic cosine of x, (e^x + e^-x)/2. If x is ##NaN => ##NaN If x is ##Inf or ##-Inf => ##Inf If x i...

  • count

    Returns the number of items in the collection. (count nil) returns 0. Also works on strings, arrays, and Java Collect...

  • counted?

    Returns true if coll implements count in constant time

  • create-ns

    Create a new namespace named by the symbol if one doesn't already exist, returns it or the already-existing namespace ...

  • create-struct

    Returns a structure basis object.

  • current-basis

    Return the current basis, which may have been modified since runtime launch.

  • cycle

    Returns a lazy (infinite!) sequence of repetitions of the items in coll.

D

  • datafy

    return a representation of o as data (default identity)

  • datafy

    Attempts to return x as data. datafy will return the value of clojure.core.protocols/datafy. If the value has been t...

  • debug

    Debug level logging using print-style args. Use the 'logging.readable' namespace to avoid wrapping args in pr-str.

  • debugf

    Debug level logging using format. Use the 'logging.readable' namespace to avoid wrapping args in pr-str.

  • dec

    Returns a number one less than num. Does not auto-promote longs, will throw on overflow. See also: dec'

  • dec'

    Returns a number one less than num. Supports arbitrary precision. See also: dec

  • decimal?

    Returns true if n is a BigDecimal

  • declare

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

  • decrement-exact

    Returns a decremented by 1, throws ArithmeticException on overflow. See: https://docs.oracle.com/javase/8/docs/api/jav...

  • dedupe

    Returns a lazy sequence removing consecutive duplicates in coll. Returns a transducer when no collection is provided.

  • def

    Creates and interns a global var.

  • default-data-readers

    Default map of data reader functions provided by Clojure. May be overridden by binding *data-readers*.

  • default-data-readers

    Default map of data reader functions provided by Clojure. May be overridden by binding *data-readers*

  • definline

    Experimental - like defmacro, except defines a named function whose body is the expansion, calls to which may be expan...

  • definterface

    Creates a new Java interface with the given name and method sigs. The method return types and parameter types may be s...

  • defmacro

    Like defn, but the resulting function name is declared as a macro and will be used as a macro by the compiler when it ...

  • defmethod

    Creates and installs a new method of multimethod associated with dispatch-value.

  • defmulti

    Creates a new multimethod with the associated dispatch function. The docstring and attr-map are optional. Options a...

  • defn

    Same as (def name (fn [params* ] exprs*)) or (def name (fn ([params* ] exprs*)+)) with any doc-string or attrs added...

  • defn-

    same as defn, yielding non-public def

  • defonce

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

  • defprotocol

    A protocol is a named set of named methods and their signatures: (defprotocol AProtocolName ;optional doc string ...

  • defrecord

    (defrecord name [fields*] options* specs*) Options are expressed as sequential keywords and arguments (in any order)...

  • defstruct

    Same as (def name (create-struct keys...))

  • deftest

    Defines a test function with no arguments. Test functions may call other tests, so tests may be composed. If you com...

  • deftest-

    Like deftest but creates a private var.

  • deftype

    (deftype name [fields*] options* specs*) Options are expressed as sequential keywords and arguments (in any order). ...

  • delay

    Takes a body of expressions and yields a Delay object that will invoke the body only the first time it is forced (with...

  • delay?

    returns true if x is a Delay created with delay

  • delete-file

    Delete file f. If silently is nil or false, raise an exception on failure, else return the value of silently.

  • deliver

    Delivers the supplied value to the promise, releasing any pending derefs. A subsequent call to deliver on a promise wi...

  • demunge

    Given a string representation of a fn class, as in a stack trace element, returns a readable version.

  • demunge

    Given a string representation of a fn class, as in a stack trace element, returns a readable version.

  • denominator

    Returns the denominator part of a Ratio.

  • deref

    Also reader macro: @ref/@agent/@var/@atom/@delay/@future/@promise. Within a transaction, returns the in-transaction-va...

  • derive

    Establishes a parent/child relationship between parent and tag. Parent must be a namespace-qualified symbol or keyword...

  • descendants

    Returns the immediate and indirect children of tag, through a relationship established via derive. h must be a hierarc...

  • diff

    Recursively compares a and b, returning a tuple of [things-only-in-a things-only-in-b things-in-both]. Comparison ru...

  • Diff

    Implementation detail. Subject to change.

  • diff-similar

    Implementation detail. Subject to change.

  • difference

    Return a set that is the first set without elements of the remaining sets

  • dir

    Prints a sorted directory of public vars in a namespace

  • dir-fn

    Returns a sorted seq of symbols naming public vars in a namespace or namespace alias. Looks for aliases in *ns*

  • disable-external-entities

    Modifies a SAXParser to disable external entity resolution to prevent XXE attacks

  • disj

    disj[oin]. Returns a new set of the same (hashed/sorted) type, that does not contain key(s).

  • disj!

    disj[oin]. Returns a transient set of the same (hashed/sorted) type, that does not contain key(s).

  • dissoc

    dissoc[iate]. Returns a new map of the same (hashed/sorted) type, that does not contain a mapping for key(s).

  • dissoc!

    Returns a transient map that doesn't contain a mapping for key(s).

  • distinct

    Returns a lazy sequence of the elements of coll with duplicates removed. Returns a stateful transducer when no collect...

  • distinct?

    Returns true if no two of the arguments are =

  • do

    Evaluates expressions in order, returning the last.

  • do-alts

    returns derefable [val port] if immediate, nil if enqueued

  • do-report

    Add file and line information to a test result and call report. If you are writing a custom assert-expr method, call ...

  • do-template

    Repeatedly copies expr (in a do block) for each group of arguments in values. values are automatically partitioned by...

  • doall

    When lazy sequences are produced via functions that have side effects, any effects other than those needed to produce ...

  • doc

    Prints documentation for a var or special form given its name, or for a spec if given a keyword

  • dorun

    When lazy sequences are produced via functions that have side effects, any effects other than those needed to produce ...

  • doseq

    Repeatedly executes body (presumably for side-effects) with bindings and filtering as provided by "for". Does not ret...

  • dosync

    Runs the exprs (in an implicit do) in a transaction that encompasses exprs and any nested calls. Starts a transaction...

  • dotimes

    bindings => name n Repeatedly executes body (presumably for side-effects) with name bound to integers from 0 throug...

  • doto

    Evaluates x then calls all of the methods and functions with the value of x supplied at the front of the given argumen...

  • double

    Coerce to double

  • double-array

    Creates an array of doubles

  • double?

    Return true if x is a Double

  • doubles

    Casts to double[]

  • down

    Returns the loc of the leftmost child of the node at this loc, or nil if no children

  • drop

    Returns a laziness-preserving sequence of all but the first n items in coll. Returns a stateful transducer when no col...

  • drop

    Elides the first n values from the reduction of coll.

  • drop-last

    Return a lazy sequence of all but the last n (default 1) items in coll

  • drop-while

    Returns a lazy sequence of the items in coll starting from the first item for which (pred item) returns logical false....

  • dropping-buffer

    Returns a buffer of size n. When full, puts will complete but val will be dropped (no transfer).

E

  • E

    Constant for e, the base for natural logarithms. See: https://docs.oracle.com/javase/8/docs/api/java/lang/Math.html#E

  • e

    REPL utility. Prints a brief stack trace for the root cause of the most recent exception.

  • edit

    Replaces the node at this loc with the value of (f node args)

  • eduction

    Returns a reducible/iterable application of the transducers to the items in coll. Transducers are applied in order as ...

  • element

    Create an xml Element from content varargs

  • element*

    Create an xml element from a content collection and optional metadata

  • element-nss

    Get xmlns environment from element

  • emit

    Prints the given Element tree as XML text to stream. Options: :encoding <str> Character encoding to use ...

  • emit-matrix

    Take the list of vars and sequence of unprocessed clauses and return the pattern matrix. The pattern matrix contains ...

  • emit-pattern

    Returns the corresponding pattern for the given syntax. Dispatches on the class of its argument. For example, `[(:or 1...

  • emit-pattern-for-syntax

    Handles patterns wrapped in the special list syntax. Dispatches on the first or second keyword in the list. For exampl...

  • emit-str

    Emits the Element to String and returns it. Options: :encoding <str> Character encoding to use :doct...

  • empty

    Returns an empty collection of the same category as coll, or nil

  • empty-rows-case

    Case 1: If there are no pattern rows to match, then matching always fails

  • empty?

    Returns true if coll has no items. To check the emptiness of a seq, please use the idiom (seq x) rather than (not (emp...

  • enabled?

    Returns true if the specific logging level is enabled. Use of this macro should only be necessary if one needs to exe...

  • end?

    Returns true if loc represents the end of a depth-first walk

  • ends-with?

    True if s ends with substr.

  • ensure

    Must be called in a transaction. Protects the ref from modification by other transactions. Returns the in-transaction...

  • ensure-reduced

    If x is already reduced?, returns it, else returns (reduced x)

  • enumeration-seq

    Returns a seq on a java.util.Enumeration

  • equality-partition

    Implementation detail. Subject to change.

  • EqualityPartition

    Implementation detail. Subject to change.

  • err->msg

    Helper to return an error message string from an exception.

  • error

    Error level logging using print-style args. Use the 'logging.readable' namespace to avoid wrapping args in pr-str.

  • error-handler

    Returns the error-handler of agent a, or nil if there is none. See set-error-handler!

  • error-mode

    Returns the error-mode of agent a. See set-error-mode!

  • errorf

    Error level logging using format. Use the 'logging.readable' namespace to avoid wrapping args in pr-str.

  • escape

    Return a new string, using cmap to escape each character ch from s as follows: If (cmap ch) is nil, append ch ...

  • eval

    Evaluates the form data structure (not text!) and returns the result.

  • even-number-of-forms?

    Returns true if there are an even number of forms in a binding vector

  • even?

    Returns true if n is even, throws an exception if n is not an integer

  • event-seq

    Parses an XML input source into a lazy sequence of pull events. Input source can be a java.io.InputStream or java.io.Re...

  • event-tree

    Returns a lazy tree of Element objects for the given seq of Event objects. See source-seq and parse.

  • every-pred

    Takes a set of predicates and returns a function f that returns true if all of its composing predicates return a logic...

  • every?

    Returns true if (pred x) is logical true for every x in coll, else false.

  • evict

    Removes an entry from the cache

  • ex-cause

    Returns the cause of ex if ex is a Throwable. Otherwise returns nil.

  • ex-data

    Returns exception data (a map) if ex is an IExceptionInfo. Otherwise returns nil.

  • ex-info

    Create an instance of ExceptionInfo, a RuntimeException subclass that carries a map of additional data.

  • ex-message

    Returns the message attached to ex if ex is a Throwable. Otherwise returns nil.

  • ex-str

    Returns a string from exception data, as produced by ex-triage. The first line summarizes the exception phase and loca...

  • ex-triage

    Returns an analysis of the phase, error, cause, and location of an error that occurred based on Throwable data, as ret...

  • exec

    Execute a command and on successful exit, return the captured output, else throw RuntimeException. Args are the same a...

  • exit-ref

    Given a Process (the output of 'start'), return a reference that can be used to wait for process completion then retur...

  • exp

    Returns Euler's number e raised to the power of a. If a is ##NaN => ##NaN If a is ##Inf => ##Inf If a is ##-Inf =>...

  • expm1

    Returns e^x - 1. Near 0, expm1(x)+1 is more accurate to e^x than exp(x). If x is ##NaN => ##NaN If x is ##Inf => #In...

  • extend

    Implementations of protocol methods can be provided using the extend construct: (extend AType AProtocol {:fo...

  • extend-protocol

    Useful when you want to provide several implementations of the same protocol all at once. Takes a single protocol and ...

  • extend-type

    A macro that expands into an extend call. Useful when you are supplying the definitions explicitly inline, extend-type...

  • extenders

    Returns a collection of the types explicitly extending protocol

  • extends?

    Returns true if atype extends protocol

F

  • false?

    Returns true if x is the value false, false otherwise.

  • fatal

    Fatal level logging using print-style args. Use the 'logging.readable' namespace to avoid wrapping args in pr-str.

  • fatalf

    Fatal level logging using format. Use the 'logging.readable' namespace to avoid wrapping args in pr-str.

  • ffirst

    Same as (first (first x))

  • fifo

    Works the same as the basic memoization function (i.e. `memo` and `core.memoize` except when a given threshold is bre...

  • fifo-cache-factory

    Returns a FIFO cache with the cache and FIFO queue initialized to `base` -- the queue is filled as the values are pul...

  • file

    Returns a java.io.File, passing each arg to as-file. Multiple-arg versions treat the first argument as parent and su...

  • file-seq

    A tree seq on java.io.Files

  • filenames-in-jar

    Returns a sequence of Strings naming the non-directory entries in the JAR file.

  • filter

    Returns a lazy sequence of the items in coll for which (pred item) returns logical true. pred must be free of side-eff...

  • filter

    Retains values in the reduction of coll for which (pred val) returns logical true. Foldable.

  • filterv

    Returns a vector of the items in coll for which (pred item) returns logical true. pred must be free of side-effects.

  • finally

    Finally clause inside try, runs on exit.

  • find

    Returns the map entry for key, or nil if key not present.

  • find-doc

    Prints documentation for any var whose documentation or name contains a match for re-string-or-pattern

  • find-keyword

    Returns a Keyword with the given namespace and name if one already exists. This function will not intern a new keywor...

  • find-ns

    Returns the namespace named by the symbol or nil if it doesn't exist.

  • find-var

    Returns the global var named by the namespace-qualified symbol, or nil if no var with that name.

  • find-xmlns

    Find all xmlns occuring in a root

  • first

    Returns the first item in the collection. Calls seq on its argument. If coll is nil, returns nil.

  • first-column-chosen-case

    Case 3a: The first column is chosen. Compute and return a switch/bind node with a default matrix case

  • first-row-empty-case

    Case 2: If the first row is empty then matching always succeeds and yields the first action.

  • first-row-wildcards-case

    Case 2: If the first row is constituted by wildcards then matching matching always succeeds and yields the first actio...

  • flag-descriptors

    The Java access bitflags, along with their friendly names and the kinds of objects to which they can apply.

  • flatten

    Takes any nested combination of sequential things (lists, vectors, etc.) and returns their contents as a single, flat ...

  • flatten

    Takes any nested combination of sequential things (lists, vectors, etc.) and returns their contents as a single, flat ...

  • flatten-elements

    Flatten a collection of elements to an event seq

  • float

    Coerce to float

  • float-array

    Creates an array of floats

  • float?

    Returns true if n is a floating point number

  • floats

    Casts to float[]

  • floor

    Returns the largest double less than or equal to a, and equal to a mathematical integer. If a is ##NaN or ##Inf or #...

  • floor-div

    Integer division that rounds to negative infinity (as opposed to zero). The special case (floorDiv Long/MIN_VALUE -1) ...

  • floor-mod

    Integer modulus x - (floorDiv(x, y) * y). Sign matches y and is in the range -|y| < r < |y|. See: https://docs.oracl...

  • flush

    Flushes the output stream that is the current value of *out*

  • fn

    params => positional-params*, or positional-params* & rest-param positional-param => binding-form rest-param => bind...

  • fn?

    Returns true if x implements Fn, i.e. is an object created via fn.

  • fnext

    Same as (first (next x))

  • fnil

    Takes a function f, and returns a function that calls f, replacing a nil first argument to f with the supplied value x...

  • fold

    Reduces a collection using a (potentially parallel) reduce-combine strategy. The collection is partitioned into groups...

  • foldcat

    Equivalent to (fold cat append! coll)

  • folder

    Given a foldable collection, and a transformation function xf, returns a foldable collection, where any supplied reduc...

  • for

    List comprehension. Takes a vector of one or more binding-form/collection-expr pairs, each followed by zero or more ...

  • force

    If x is a Delay, returns the (possibly cached) value of its expression, else returns x

  • format

    Formats a string using java.lang.String.format, see java.util.Formatter for format string syntax

  • format-lines

    Format a sequence of summary parts into columns. lens is a sequence of lengths to use for parts. There are two sequenc...

  • formatter

    Makes a function which can directly run format-in. The function is fn [stream & args] ... and returns nil unless the str...

  • formatter-out

    Makes a function which can directly run format-in. The function is fn [& args] ... and returns nil. This version of the ...

  • frequencies

    Returns a map from distinct items in coll to the number of times they appear.

  • fresh-line

    Make a newline if *out* is not already at the beginning of the line. If *out* is not a pretty writer (which keeps track ...

  • from-file

    Coerce f to a file per clojure.java.io/file and return a ProcessBuilder.Redirect reading from the file. This can be pa...

  • function?

    Returns true if argument is a function or a symbol that resolves to a function (not a macro).

  • future

    Takes a body of expressions and yields a future object that will invoke the body in another thread, and will cache the...

  • future-call

    Takes a function of no args and yields a future object that will invoke the function in another thread, and will cache...

  • future-cancel

    Cancels the future, if possible.

  • future-cancelled?

    Returns true if future f is cancelled

  • future-done?

    Returns true if future f is done

  • future?

    Returns true if x is a future

G

  • gen-class

    When compiling, generates compiled bytecode for a class with the given package-qualified :name (which, as all names in...

  • gen-interface

    When compiling, generates compiled bytecode for an interface with the given package-qualified :name (which, as all nam...

  • gensym

    Returns a new symbol with a unique name. If a prefix string is supplied, the name is prefix# where # is some unique nu...

  • get

    Returns the value mapped to key, not-found or nil if key not present in associative collection, set, string, array, or...

  • get-default-options

    Extract the map of default options from a sequence of option vectors. As of 0.4.1, this also applies any :default-fn ...

  • get-exponent

    Returns the exponent of d. If d is ##NaN, ##Inf, ##-Inf => Double/MAX_EXPONENT + 1 If d is zero or subnormal => Doub...

  • get-in

    Returns the value in a nested associative structure, where ks is a sequence of keys. Returns nil if the key is not p...

  • get-method

    Given a multimethod and a dispatch value, returns the dispatch fn that would apply to that value, or nil if none apply...

  • get-possibly-unbound-var

    Like var-get but returns nil if the var is unbound.

  • get-pretty-writer

    Returns the java.io.Writer passed in wrapped in a pretty writer proxy, unless it's already a pretty writer. Generally, ...

  • get-proxy-class

    Takes an optional single class followed by zero or more interfaces. If not supplied class defaults to Object. Creates...

  • get-thread-bindings

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

  • get-urls

    Returns a sequence of java.net.URL objects used by this classloader, or nil if the classloader does not sastify the ...

  • get-validator

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

  • go

    Asynchronously executes the body, returning immediately to the calling thread. Additionally, any visible calls to <!, ...

  • go-loop

    Like (go (loop ...))

  • group-by

    Returns a map of the elements of coll keyed by the result of f on each element. The value at each key will be a vector...

  • group-keywords

    Returns a pattern with pattern-keywords (:when and :as) properly grouped. The original pattern may use the 'flatten...

  • groupable?

    Determine if two patterns may be grouped together for simultaneous testing.

H

  • halt-when

    Returns a transducer that ends transduction when pred returns true for an input. When retf is supplied it must be a fn...

  • has?

    Checks if the cache contains a value associated with `e`

  • hash

    Returns the hash code of its argument. Note this is the hash code consistent with =, and thus is different than .hashC...

  • hash-map

    keyval => key val Returns a new hash map with supplied mappings. If any keys are equal, they are handled as if by r...

  • hash-ordered-coll

    Returns the hash code, consistent with =, for an external ordered collection implementing Iterable. See http://clo...

  • hash-set

    Returns a new hash set with supplied keys. Any equal keys are handled as if by repeated uses of conj.

  • hash-unordered-coll

    Returns the hash code, consistent with =, for an external unordered collection implementing Iterable. For maps, the i...

  • hit

    Is meant to be called if the cache is determined to contain a value associated with `e`

  • hypot

    Returns sqrt(x^2 + y^2) without intermediate underflow or overflow. If x or y is ##Inf or ##-Inf => ##Inf If x or y ...

I

  • ident?

    Return true if x is a symbol or keyword

  • identical?

    Tests if 2 arguments are the same object

  • identity

    Returns its argument.

  • IEEE-remainder

    Returns the remainder per IEEE 754 such that remainder = dividend - divisor * n where n is the integer closest to ...

  • if

    Evaluates test, then consequent or alternative.

  • if-let

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

  • if-not

    Evaluates test. If logical false, evaluates and returns then expr, otherwise else expr, if supplied, else nil.

  • if-some

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

  • ifn?

    Returns true if x implements IFn. Note that many data structures (e.g. sets and maps) implement IFn

  • IKVReduce

    Protocol for concrete associative types that can reduce themselves via a function of key and val faster than first/ne...

  • import

    import-list => (package-symbol class-name-symbols*) For each name in class-name-symbols, adds a mapping from name to ...

  • in-ns

    Sets *ns* to the namespace named by the symbol, creating it if needed.

  • inc

    Returns a number one greater than num. Does not auto-promote longs, will throw on overflow. See also: inc'

  • inc'

    Returns a number one greater than num. Supports arbitrary precision. See also: inc

  • inc-report-counter

    Increments the named counter in *report-counters*, a ref to a map. Does nothing if *report-counters* is nil.

  • includes?

    True if s includes substr.

  • increment-exact

    Returns a incremented by 1, throws ArithmeticException on overflow. See: https://docs.oracle.com/javase/8/docs/api/jav...

  • indent

    Emits the XML and indents the result. WARNING: this is slow it will emit the XML and read it in again to indent it. ...

  • indent-str

    Emits the XML and indents the result. Writes the results to a String and returns it

  • index

    Returns a map of the distinct values of ks in the xrel mapped to a set of the maps in xrel with the corresponding valu...

  • index-of

    Return index of value (string or char) in s, optionally searching forward from from-index. Return nil if value not fou...

  • indexed?

    Return true if coll implements Indexed, indicating efficient lookup by index

  • infinite?

    Returns true if num is negative or positive infinity, else false

  • info

    Info level logging using print-style args. Use the 'logging.readable' namespace to avoid wrapping args in pr-str.

  • infof

    Info level logging using format. Use the 'logging.readable' namespace to avoid wrapping args in pr-str.

  • init-proxy

    Takes a proxy instance and a map of strings (which must correspond to methods of the proxy superclass/superinterfaces)...

  • initial-basis

    Initial runtime basis at launch, nil if unknown (process not started by CLI)

  • input-stream

    Attempts to coerce its argument into an open java.io.InputStream. Default implementations always return a java.io.Buf...

  • insert-child

    Inserts the item as the leftmost child of the node at this loc, without moving

  • insert-left

    Inserts the item as the left sibling of the node at this loc, without moving

  • insert-right

    Inserts the item as the right sibling of the node at this loc, without moving

  • inspect

    creates a graphical (Swing) inspector on the supplied object

  • inspect-table

    creates a graphical (Swing) inspector on the supplied regular data, which must be a sequential data structure of data ...

  • inspect-tree

    creates a graphical (Swing) inspector on the supplied hierarchical data

  • inst-ms

    Return the number of milliseconds since January 1, 1970, 00:00:00 GMT

  • inst?

    Return true if x satisfies Inst

  • instance?

    Evaluates x and tests if it is an instance of the class c. Returns true or false

  • int

    Coerce to int

  • int-array

    Creates an array of ints

  • int?

    Return true if x is a fixed precision integer

  • integer?

    Returns true if n is an integer

  • interleave

    Returns a lazy seq of the first item in each coll, then the second etc.

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

  • InternalReduce

    Protocol for concrete seq types that can reduce themselves faster than first/next recursion. Called by clojure.core/r...

  • interpose

    Returns a lazy seq of the elements of coll separated by sep. Returns a stateful transducer when no collection is provi...

  • intersection

    Return a set that is the intersection of the input sets

  • into

    Returns a new coll consisting of to with all of the items of from conjoined. A transducer may be supplied. (into x) ...

  • into

    Returns a channel containing the single (collection) result of the items taken from the channel conjoined to the suppl...

  • into-array

    Returns an array with components set to the values in aseq. The array's component type is type if provided, or the typ...

  • ints

    Casts to int[]

  • invoke-tool

    Invoke tool using Clojure CLI. Args (one of :tool-alias or :tool-name, and :fn are required): :tool-alias - Tool a...

  • io!

    If an io! block occurs in a transaction, throws an IllegalStateException, else runs body in an implicit do. If the f...

  • io-prepl

    prepl bound to *in* and *out*, suitable for use with e.g. server/repl (socket-repl). :ret and :tap vals will be proces...

  • IOFactory

    Factory functions that create ready-to-use, buffered versions of the various Java I/O stream types, on top of anythin...

  • is

    Generic assertion macro. 'form' is any predicate test. 'msg' is an optional message to attach to the assertion. ...

  • isa?

    Returns true if (= child parent), or child is directly or indirectly derived from parent, either via a Java type inher...

  • iterate

    Returns a lazy (infinite!) sequence of x, (f x), (f (f x)) etc. f must be free of side-effects

  • iteration

    Creates a seqable/reducible via repeated calls to step, a function of some (continuation token) 'k'. The first call to...

  • iterator-seq

    Returns a seq on a java.util.Iterator. Note that most collections providing iterators implement Iterable and thus supp...

J

  • jar-file?

    Returns true if file is a normal file with a .jar or .JAR extension.

  • javadoc

    Opens a browser window displaying the javadoc for the argument. Tries *local-javadocs* first, then *remote-javadocs*.

  • join

    When passed 2 rels, returns the rel corresponding to the natural join. When passed an additional keymap, joins on the ...

  • join

    Returns a string of all elements in coll, as returned by (seq coll), separated by an optional separator.

  • join-fixtures

    Composes a collection of fixtures, in order. Always returns a valid fixture function, even if the collection is empty...

  • json-str

    DEPRECATED; replaced by 'write-str'. Converts x to a JSON-formatted string. Valid options are: :escape-unicode...

  • juxt

    Takes a set of functions and returns a fn that is the juxtaposition of those fns. The returned fn takes a variable nu...

K

  • keep

    Returns a lazy sequence of the non-nil results of (f item). Note, this means false return values will be included. f ...

  • keep-indexed

    Returns a lazy sequence of the non-nil results of (f index item). Note, this means false return values will be include...

  • key

    Returns the key of the map entry.

  • keys

    Returns a sequence of the map's keys, in the same order as (seq map).

  • keyword

    Returns a Keyword with the given namespace and name. Do not use : in the keyword strings, it will be added automatica...

  • keyword?

    Return true if x is a Keyword

  • keywordize-keys

    Recursively transforms all map keys from strings to keywords.

L

  • last

    Return the last item in coll, in linear time

  • last-index-of

    Return last index of value (string or char) in s, optionally searching backward from from-index. Return nil if value n...

  • lazy-cat

    Expands to code which yields a lazy sequence of the concatenation of the supplied colls. Each coll expr is not evalua...

  • lazy-seq

    Takes a body of expressions that returns an ISeq or nil, and yields a Seqable object that will invoke the body only th...

  • lazy-snapshot

    Returns a lazy snapshot of a core.memo-placed memoization cache. By lazy snapshot you can infer that what you get is...

  • left

    Returns the loc of the left sibling of the node at this loc, or nil

  • leftmost

    Returns the loc of the leftmost sibling of the node at this loc, or self

  • lefts

    Returns a seq of the left siblings of this loc

  • let

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

  • letfn

    fnspec ==> (fname [params*] exprs) or (fname ([params*] exprs)+) Takes a vector of function specs and a body, and gen...

  • line-seq

    Returns the lines of text from rdr as a lazy sequence of strings. rdr must implement java.io.BufferedReader.

  • lirs-cache-factory

    Returns an LIRS cache with the S & R LRU lists set to the indicated limits.

  • list

    Creates a new list containing the items.

  • list*

    Creates a new seq containing the items prepended to the rest, the last of which will be treated as a sequence.

  • list?

    Returns true if x implements IPersistentList

  • load

    Loads Clojure code from resources in classpath. A path is interpreted as classpath-relative if it begins with a slash ...

  • load-file

    Sequentially read and evaluate the set of forms contained in the file.

  • load-reader

    Sequentially read and evaluate the set of forms contained in the stream/file

  • load-script

    Loads Clojure source from a file or resource given its path. Paths beginning with @ or @/ are considered relative to c...

  • load-string

    Sequentially read and evaluate the set of forms contained in the string

  • loaded-libs

    Returns a sorted set of symbols naming the currently loaded libs

  • loader-classpath

    Returns a sequence of File paths from a classloader.

  • locking

    Executes exprs in an implicit do, while holding the monitor of x. Will release the monitor of x in all circumstances.

  • log

    Returns the natural logarithm (base e) of a. If a is ##NaN or negative => ##NaN If a is ##Inf => ##Inf If a is zer...

  • log

    Evaluates and logs a message only if the specified level is enabled. See log* for more details.

  • log*

    Attempts to log a message, either directly or via an agent; does not check if the level is enabled. For performance...

  • log-capture!

    Captures System.out and System.err, piping all writes of those streams to the log. If unspecified, levels default to...

  • log-stream

    Creates a PrintStream that will output to the log at the specified level.

  • log-uncapture!

    Restores System.out and System.err to their original values.

  • log10

    Returns the logarithm (base 10) of a. If a is ##NaN or negative => ##NaN If a is ##Inf => ##Inf If a is zero => ##...

  • log1p

    Returns ln(1+x). For small values of x, log1p(x) is more accurate than log(1.0+x). If x is ##NaN or < -1 => ##NaN ...

  • logf

    Logs a message using a format string and args. Can optionally take a throwable as its second arg. See level-specific m...

  • logp

    Logs a message using print style args. Can optionally take a throwable as its second arg. See level-specific macros, e...

  • long

    Coerce to long

  • long-array

    Creates an array of longs

  • longs

    Casts to long[]

  • lookup

    Retrieve the value associated with `e` if it exists, else `nil` in the 2-arg case. Retrieve the value associated wit...

  • loop

    Evaluates the exprs in a lexical context in which the symbols in the binding-forms are bound to their respective init-...

  • lower-case

    Converts string to all lower-case.

  • lru

    Works the same as the basic memoization function (i.e. `memo` and `core.memoize` except when a given threshold is bre...

  • lru-cache-factory

    Returns an LRU cache with the cache and usage-table initialized to `base` -- each entry is initialized with the same ...

  • lu

    Similar to the implementation of memo-lru, except that this function removes all cache values whose usage value is ...

  • lu-cache-factory

    Returns an LU cache with the cache and usage-table initialized to `base`. This function takes an optional `:threshol...

M

  • macroexpand

    Repeatedly calls macroexpand-1 on form until it no longer represents a macro form, then returns it. Note neither ma...

  • macroexpand-1

    If form represents a macro form, returns its expansion, else returns form.

  • macroexpand-all

    Recursively performs all possible macroexpansions in form.

  • main

    Usage: java -cp clojure.jar clojure.main [init-opt*] [main-opt] [arg*] With no options or args, runs an interactive R...

  • make-array

    Creates and returns an array of instances of the specified class of the specified dimension(s). Note that a class obj...

  • make-hierarchy

    Creates a hierarchy object for use with derive, isa? etc.

  • make-input-stream

    Creates a BufferedInputStream. See also IOFactory docs.

  • make-node

    Returns a new branch node, given an existing node and new children. The loc is only used to supply the constructor.

  • make-output-stream

    Creates a BufferedOutputStream. See also IOFactory docs.

  • make-parents

    Given the same arg(s) as for file, creates all parent directories of the file they represent.

  • make-reader

    Creates a BufferedReader. See also IOFactory docs.

  • make-summary-part

    Given a single compiled option spec, turn it into a formatted string, optionally with its default values if requested.

  • make-writer

    Creates a BufferedWriter. See also IOFactory docs.

  • map

    Returns a lazy sequence consisting of the result of applying f to the set of first items of each coll, followed by app...

  • map

    Takes a function and a collection of source channels, and returns a channel which contains the values produced by appl...

  • map

    Applies f to every value in the reduction of coll. Foldable.

  • map->BindNode

    Factory function for class clojure.core.match.BindNode, taking a map of keywords to field values.

  • map->CDataEvent

    Factory function for class clojure.data.xml.event.CDataEvent, taking a map of keywords to field values.

  • map->CharsEvent

    Factory function for class clojure.data.xml.event.CharsEvent, taking a map of keywords to field values.

  • map->CommentEvent

    Factory function for class clojure.data.xml.event.CommentEvent, taking a map of keywords to field values.

  • map->Constructor

    Factory function for class clojure.reflect.Constructor, taking a map of keywords to field values.

  • map->EmptyElementEvent

    Factory function for class clojure.data.xml.event.EmptyElementEvent, taking a map of keywords to field values.

  • map->FailNode

    Factory function for class clojure.core.match.FailNode, taking a map of keywords to field values.

  • map->Field

    Factory function for class clojure.reflect.Field, taking a map of keywords to field values.

  • map->LeafNode

    Factory function for class clojure.core.match.LeafNode, taking a map of keywords to field values.

  • map->MapKeyPattern

    Factory function for class clojure.core.match.MapKeyPattern, taking a map of keywords to field values.

  • map->Method

    Factory function for class clojure.reflect.Method, taking a map of keywords to field values.

  • map->PatternMatrix

    Factory function for class clojure.core.match.PatternMatrix, taking a map of keywords to field values.

  • map->QNameEvent

    Factory function for class clojure.data.xml.event.QNameEvent, taking a map of keywords to field values.

  • map->RestPattern

    Factory function for class clojure.core.match.RestPattern, taking a map of keywords to field values.

  • map->StartElementEvent

    Factory function for class clojure.data.xml.event.StartElementEvent, taking a map of keywords to field values.

  • map->SwitchNode

    Factory function for class clojure.core.match.SwitchNode, taking a map of keywords to field values.

  • map-entry?

    Return true if x is a map entry

  • map-func

    Decide which map type to use, array-map if less than 16 elements

  • map-indexed

    Returns a lazy sequence consisting of the result of applying f to 0 and the first item of coll, followed by applying f...

  • map-invert

    Returns the map with the vals mapped to the keys.

  • map?

    Return true if x implements IPersistentMap

  • mapcat

    Returns the result of applying concat to the result of applying map to f and colls. Thus function f should return a c...

  • mapcat

    Applies f to every value in the reduction of coll, concatenating the result colls of (f val). Foldable.

  • mapv

    Returns a vector consisting of the result of applying f to the set of first items of each coll, followed by applying f...

  • match

    Pattern match a row of occurrences. Take a vector of occurrences, vars. Clause question-answer syntax is like `cond`. ...

  • matchm

    Same as match but supports IMatchLookup when matching maps.

  • max

    Returns the greatest of the nums.

  • max-key

    Returns the x for which (k x), a number, is greatest. If there are multiple such xs, the last one is returned.

  • memfn

    Expands into code that creates a fn that expects to be passed an object and any args and calls the named instance meth...

  • memo

    Used as a more flexible alternative to Clojure's core `memoization` function. Memoized functions built using `memo` ...

  • memo-clear!

    Reaches into an core.memo-memoized function and clears the cache. This is a destructive operation and should be used...

  • memo-fifo

    DEPRECATED: Please use clojure.core.memoize/fifo instead.

  • memo-lru

    DEPRECATED: Please use clojure.core.memoize/lru instead.

  • memo-lu

    DEPRECATED: Please use clojure.core.memoize/lu instead.

  • memo-reset!

    Takes a core.memo-populated function and a map and replaces the memoization cache with the supplied map. This is pot...

  • memo-swap!

    The 2-arity version takes a core.memo-populated function and a map and replaces the memoization cache with the supplie...

  • memo-ttl

    DEPRECATED: Please use clojure.core.memoize/ttl instead.

  • memoize

    Returns a memoized version of a referentially transparent function. The memoized version of the function keeps a cache...

  • memoized?

    Returns true if a function has an core.memo-placed cache, false otherwise.

  • memoizer

    Build a pluggable memoized version of a function. Given a function and a (pluggable memoized) cache, and an optional s...

  • merge

    Returns a map that consists of the rest of the maps conj-ed onto the first. If a key occurs in more than one map, the...

  • merge

    Takes a collection of source channels and returns a channel which contains all values taken from them. The returned ch...

  • merge-with

    Returns a map that consists of the rest of the maps conj-ed onto the first. If a key occurs in more than one map, the...

  • meta

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

  • methods

    Given a multimethod, returns a map of dispatch values -> dispatch fns

  • min

    Returns the least of the nums.

  • min-key

    Returns the x for which (k x), a number, is least. If there are multiple such xs, the last one is returned.

  • miss

    Is meant to be called if the cache is determined to **not** contain a value associated with `e`

  • mix

    Creates and returns a mix of one or more input channels which will be put on the supplied out channel. Input sources c...

  • mix-collection-hash

    Mix final collection hash for ordered or unordered collections. hash-basis is the combined collection hash, count is ...

  • mod

    Modulus of num and div. Truncates toward negative infinity.

  • monitor-enter

    Acquires the monitor of an object.

  • monitor-exit

    Releases the monitor of an object.

  • monoid

    Builds a combining fn out of the supplied operator and identity constructor. op must be associative and ctor called wi...

  • mult

    Creates and returns a mult(iple) of the supplied channel. Channels containing copies of the channel can be created wit...

  • multiply-exact

    Returns the product of x and y, throws ArithmeticException on overflow. See: https://docs.oracle.com/javase/8/docs/api...

N

  • name

    Returns the name String of a string, symbol or keyword.

  • namespace

    Returns the namespace String of a symbol or keyword, or nil if not present.

  • namespace-munge

    Convert a Clojure namespace name to a legal Java package name.

  • NaN?

    Returns true if num is NaN, else false

  • nat-int?

    Return true if x is a non-negative fixed precision integer

  • nav

    return (possibly transformed) v in the context of coll and k (a key/index or nil), defaults to returning v.

  • nav

    Returns (possibly transformed) v in the context of coll and k (a key/index or nil). Callers should attempt to provide ...

  • neg-int?

    Return true if x is a negative fixed precision integer

  • neg?

    Returns true if num is less than zero, else false

  • negate-exact

    Returns the negation of a, throws ArithmeticException on overflow. See: https://docs.oracle.com/javase/8/docs/api/java...

  • new

    Creates a new instance of a class.

  • newline

    Writes a platform-specific newline to *out*

  • next

    Returns a seq of the items after the first. Calls seq on its argument. If there are no more items, returns nil.

  • next

    Moves to the next loc in the hierarchy, depth-first. When reaching the end, returns a distinguished loc detectable via...

  • next-after

    Returns the adjacent floating point number to start in the direction of the second argument. If the arguments are equa...

  • next-down

    Returns the adjacent double of d in the direction of ##-Inf. If d is ##NaN => ##NaN If d is ##-Inf => ##-Inf If d ...

  • next-up

    Returns the adjacent double of d in the direction of ##Inf. If d is ##NaN => ##NaN If d is ##Inf => ##Inf If d is ...

  • nfirst

    Same as (next (first x))

  • nil?

    Returns true if x is nil, false otherwise.

  • nnext

    Same as (next (next x))

  • node

    Returns the node at loc

  • not

    Returns true if x is logical false, false otherwise.

  • not-any?

    Returns false if (pred x) is logical true for any x in coll, else true.

  • not-empty

    If coll is empty, returns nil, else coll

  • not-every?

    Returns false if (pred x) is logical true for every x in coll, else true.

  • not=

    Same as (not (= obj1 obj2))

  • ns

    Sets *ns* to the namespace named by name (unevaluated), creating it if needed. references can be zero or more of: (:r...

  • ns-aliases

    Returns a map of the aliases for the namespace.

  • ns-imports

    Returns a map of the import mappings for the namespace.

  • ns-interns

    Returns a map of the intern mappings for the namespace.

  • ns-map

    Returns a map of all the mappings for the namespace.

  • ns-name

    Returns the name of the namespace, a symbol.

  • ns-publics

    Returns a map of the public intern mappings for the namespace.

  • ns-refers

    Returns a map of the refer mappings for the namespace.

  • ns-resolve

    Returns the var or Class to which a symbol will be resolved in the namespace (unless found in the environment), else n...

  • ns-unalias

    Removes the alias for the symbol from the namespace.

  • ns-unmap

    Removes the mappings for the symbol from the namespace.

  • nth

    Returns the value at the index. get returns nil if index out of bounds, nth throws an exception unless not-found is su...

  • nthnext

    Returns the nth next of coll, (seq coll) when n is 0.

  • nthrest

    Returns the nth rest of coll, coll when n is 0.

  • num

    Coerce to Number

  • number?

    Returns true if x is a Number

  • numerator

    Returns the numerator part of a Ratio.

O

  • object-array

    Creates an array of objects

  • odd?

    Returns true if n is odd, throws an exception if n is not an integer

  • offer!

    Puts a val into port if it's possible to do so immediately. nil values are not allowed. Never blocks. Returns true if...

  • on-extra-throw

    Pass as :extra-data-fn to `read` or `read-str` to throw if data is found after the first object.

  • on-extra-throw-remaining

    Pass as :extra-data-fn to `read` or `read-str` to throw if data is found after the first object and return the remaini...

  • onto-chan!

    Puts the contents of coll into the supplied channel. By default the channel will be closed after the items are copied...

  • onto-chan!!

    Like onto-chan! for use when accessing coll might block, e.g. a lazy seq of blocking operations

  • or

    Evaluates exprs one at a time, from left to right. If a form returns a logical true value, or returns that value and d...

  • other-column-chosen-case

    Case 3b: A column other than the first is chosen. Swap column col with the first column and compile the result

  • output-stream

    Attempts to coerce its argument into an open java.io.OutputStream. Default implementations always return a java.io.Bu...

P

  • parents

    Returns the immediate parents of tag, either via a Java type inheritance relationship or a relationship established vi...

  • parse

    Parses an XML input source into a a tree of Element records. The element tree is realized lazily, so huge XML files can ...

  • parse

    Parses and loads the source s, which can be a File, InputStream or String naming a URI. Returns a tree of the xml/elem...

  • parse-boolean

    Parse strings "true" or "false" and return a boolean, or nil if invalid

  • parse-double

    Parse string with floating point components and return a Double value, or nil if parse fails. Grammar: https://docs...

  • parse-long

    Parse string of decimal digits with optional leading -/+ and return a Long value, or nil if parse fails

  • parse-opts

    Parse arguments sequence according to given option specifications and the GNU Program Argument Syntax Conventions: ...

  • parse-str

    Parses an XML String into a a tree of Element records. Options: :include-node? subset of #{:element :characters :com...

  • parse-timestamp

    Parse a string containing an RFC3339-like like timestamp. The function new-instant is called with the following argumen...

  • parse-uuid

    Parse a string representing a UUID and return a java.util.UUID instance, or nil if parse fails. Grammar: https://do...

  • partial

    Takes a function f and fewer than the normal arguments to f, and returns a fn that takes a variable number of addition...

  • partition

    Returns a lazy sequence of lists of n items each, at offsets step apart. If step is not supplied, defaults to n, i.e. ...

  • partition-all

    Returns a lazy sequence of lists like partition, but may include partitions with fewer than n items at the end. Retur...

  • partition-by

    Applies f to each value in coll, splitting it each time f returns a new value. Returns a lazy seq of partitions. Re...

  • partitionv

    Returns a lazy sequence of vectors of n items each, at offsets step apart. If step is not supplied, defaults to n, i.e...

  • partitionv-all

    Returns a lazy sequence of vector partitions, but may include partitions with fewer than n items at the end. Returns...

  • path

    Returns a seq of nodes leading to this loc

  • pcalls

    Executes the no-arg fns in parallel, returning a lazy sequence of their values

  • peek

    For a list or queue, same as first, for a vector, same as, but much more efficient than, last. If the collection is em...

  • persistent!

    Returns a new, persistent version of the transient collection, in constant time. The transient collection cannot be us...

  • PI

    Constant for pi, the ratio of the circumference of a circle to its diameter. See: https://docs.oracle.com/javase/8/doc...

  • pipe

    Takes elements from the from channel and supplies them to the to channel. By default, the to channel will be closed wh...

  • pipeline

    Takes elements from the from channel and supplies them to the to channel, subject to the transducer xf, with paralleli...

  • pipeline-async

    Takes elements from the from channel and supplies them to the to channel, subject to the async function af, with paral...

  • pipeline-blocking

    Like pipeline, for blocking operations.

  • pmap

    Like map, except f is applied in parallel. Semi-lazy in that the parallel computation stays ahead of the consumption, ...

  • poll!

    Takes a val from port if it's possible to do so immediately. Never blocks. Returns value if successful, nil otherwise...

  • pop

    For a list or queue, returns a new list/queue without the first item, for a vector, returns a new vector without the l...

  • pop!

    Removes the last item from a transient vector. If the collection is empty, throws an exception. Returns coll

  • pop-thread-bindings

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

  • pos-int?

    Return true if x is a positive fixed precision integer

  • pos?

    Returns true if num is greater than zero, else false

  • postwalk

    Performs a depth-first, post-order traversal of form. Calls f on each sub-form, uses f's return value in place of the...

  • postwalk-demo

    Demonstrates the behavior of postwalk by printing each form as it is walked. Returns form.

  • postwalk-replace

    Recursively transforms form by replacing keys in smap with their values. Like clojure/replace but works on any data s...

  • pow

    Returns the value of a raised to the power of b. For more details on special cases, see: https://docs.oracle.com/jav...

  • pp

    A convenience macro that pretty prints the last thing output. This is exactly equivalent to (pprint *1).

  • pprint

    Pretty-prints JSON representation of x to *out*. Options are the same as for write except :value-fn and :indent, which...

  • pprint

    Pretty print object to the optional output writer. If the writer is not provided, print the object to the currently bou...

  • pprint-indent

    Create an indent at this point in the pretty printing stream. This defines how following lines are indented. relative-t...

  • pprint-json

    DEPRECATED; replaced by 'pprint'. Pretty-prints JSON representation of x to *out*. Valid options are: :escape-...

  • pprint-logical-block

    Execute the body as a pretty printing logical block with output to *out* which must be a pretty printing writer. When u...

  • pprint-newline

    Print a conditional newline to a pretty printing stream. kind specifies if the newline is :linear, :miser, :fill, or :m...

  • pprint-tab

    Tab at this point in the pretty printing stream. kind specifies whether the tab is :line, :section, :line-relative, or :...

  • pr

    Prints the object(s) to the output stream that is the current value of *out*. Prints the object(s), separated by spac...

  • pr-str

    pr to a string, returning it

  • prefer-method

    Causes the multimethod to prefer matches of dispatch-val-x over dispatch-val-y when there is a conflict

  • prefers

    Given a multimethod, returns a map of preferred value -> set of other values

  • prepl

    a REPL with structured output (for programs) reads forms to eval from in-reader (a LineNumberingPushbackReader) Clos...

  • prev

    Moves to the previous loc in the hierarchy, depth-first. If already at the root, returns nil.

  • prewalk

    Like postwalk, but does pre-order traversal.

  • prewalk-demo

    Demonstrates the behavior of prewalk by printing each form as it is walked. Returns form.

  • prewalk-replace

    Recursively transforms form by replacing keys in smap with their values. Like clojure/replace but works on any data s...

  • print

    Prints the object(s) to the output stream that is the current value of *out*. print and println produce output for hu...

  • print-cause-trace

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

  • print-json

    DEPRECATED; replaced by 'write' to *out*. Write JSON-formatted output to *out*. Valid options are: :escape-uni...

  • print-length-loop

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

  • print-stack-trace

    Prints a Clojure-oriented stack trace of tr, a Throwable. Prints a maximum of n stack frames (default: unlimited). D...

  • print-str

    print to a string, returning it

  • print-table

    Prints a collection of maps in a textual table. Prints table headings ks, and then a line of output for each row, cor...

  • print-tap-diagnostic

    Prints a TAP diagnostic line. data is a (possibly multi-line) string.

  • print-tap-fail

    Prints a TAP 'not ok' line. msg is a string, with no line breaks

  • print-tap-pass

    Prints a TAP 'ok' line. msg is a string, with no line breaks

  • print-tap-plan

    Prints a TAP plan line like '1..n'. n is the number of tests

  • print-throwable

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

  • print-trace-element

    Prints a Clojure-oriented view of one element in a stack trace.

  • print-uri-file-command!

    Shell command to create a dummy file for xmlns. Execute from a source root.

  • printf

    Prints formatted output, as per format

  • println

    Same as print followed by (newline)

  • println-str

    println to a string, returning it

  • PrintWriter-on

    implements java.io.PrintWriter given flush-fn, which will be called when .flush() is called, with a string built up si...

  • priority->set-of-items

    Takes a priority map p, and returns a sorted map from each priority to the set of items with that priority in p

  • priority-map

    Usage: (priority-map key val key val ...) Returns a new priority map with optional supplied mappings. (priority-map)...

  • priority-map-by

    Usage: (priority-map comparator key val key val ...) Returns a new priority map with custom comparator and optional su...

  • priority-map-keyfn

    Usage: (priority-map-keyfn keyfn key val key val ...) Returns a new priority map with custom keyfn and optional suppli...

  • priority-map-keyfn-by

    Usage: (priority-map-keyfn-by keyfn comparator key val key val ...) Returns a new priority map with custom keyfn, cust...

  • prn

    Same as pr followed by (newline). Observes *flush-on-newline*

  • prn-str

    prn to a string, returning it

  • process-vars

    Process the vars for the pattern matrix. If user provides an expression, create a var and annotate via metadata with ...

  • project

    Returns a rel of the elements of xrel with only the keys in ks

  • promise

    Returns a promise object that can be read with deref/@, and set, once only, with deliver. Calls to deref/@ prior to de...

  • promise-chan

    Creates a promise channel with an optional transducer, and an optional exception-handler. A promise channel can take e...

  • proxy

    class-and-interfaces - a vector of class names args - a (possibly empty) vector of arguments to the superclass cons...

  • proxy-mappings

    Takes a proxy instance and returns the proxy's fn map.

  • proxy-super

    Use to call a superclass method in the body of a proxy method. Note, expansion captures 'this

  • pst

    Prints a stack trace of the exception, to the depth requested. If none supplied, uses the root cause of the most recen...

  • pub

    Creates and returns a pub(lication) of the supplied channel, partitioned into topics by the topic-fn. topic-fn will be...

  • push-thread-bindings

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

  • put!

    Asynchronously puts a val into port, calling fn1 (if supplied) when complete, passing false iff port is already close...

  • pvalues

    Returns a lazy sequence of the values of the exprs, which are evaluated in parallel

Q

  • qname-local

    Get the name for this qname

  • qname-uri

    Get the namespace uri for this qname

  • qualified-ident?

    Return true if x is a symbol or keyword with a namespace

  • qualified-keyword?

    Return true if x is a keyword with a namespace

  • qualified-symbol?

    Return true if x is a symbol with a namespace

  • quot

    quot[ient] of dividing numerator by denominator.

  • quote

    Yields the unevaluated form.

R

  • rand

    Returns a random floating point number between 0 (inclusive) and n (default 1) (exclusive).

  • rand-int

    Returns a random integer between 0 (inclusive) and n (exclusive).

  • rand-nth

    Return a random element of the (sequential) collection. Will have the same performance characteristics as nth for the ...

  • random

    Returns a positive double between 0.0 and 1.0, chosen pseudorandomly with approximately random distribution. See: ht...

  • random-sample

    Returns items from coll with random probability of prob (0.0 - 1.0). Returns a transducer when no collection is provi...

  • random-uuid

    Returns a pseudo-randomly generated java.util.UUID instance (i.e. type 4). See: https://docs.oracle.com/javase/8/docs...

  • range

    Returns a lazy seq of nums from start (inclusive) to end (exclusive), by step, where start defaults to 0, step to 1, a...

  • ratio?

    Returns true if n is a Ratio

  • rational?

    Returns true if n is a rational number

  • rationalize

    returns the rational value of num

  • re-find

    Returns the next regex match, if any, of string to pattern, using java.util.regex.Matcher.find(). Uses re-groups to r...

  • re-groups

    Returns the groups from the most recent match/find. If there are no nested groups, returns a string of the entire matc...

  • re-matcher

    Returns an instance of java.util.regex.Matcher, for use, e.g. in re-find.

  • re-matches

    Returns the match, if any, of string to pattern, using java.util.regex.Matcher.matches(). Uses re-groups to return th...

  • re-pattern

    Returns an instance of java.util.regex.Pattern, for use, e.g. in re-matcher.

  • re-quote-replacement

    Given a replacement string that you wish to be a literal replacement for a pattern match in replace or replace-first,...

  • re-seq

    Returns a lazy sequence of successive matches of pattern in string, using java.util.regex.Matcher.find(), each such ma...

  • read

    Reads the next object from stream, which must be an instance of java.io.PushbackReader or some derivee. stream defaul...

  • read

    Reads a single item of JSON data from a java.io.Reader. If you wish to repeatedly read items from the same reader, yo...

  • read

    Reads the next object from stream, which must be an instance of java.io.PushbackReader or some derivee. stream defaul...

  • read

    Reads the first object from an IPushbackReader or a java.io.PushbackReader. Returns the object read. If EOF, throws i...

  • read

    Reads the first object from an IPushbackReader or a java.io.PushbackReader. Returns the object read. If EOF, throws i...

  • read+string

    Like read, and taking the same args. stream must be a LineNumberingPushbackReader. Returns a vector containing the obj...

  • read+string

    Like read, and taking the same args. reader must be a SourceLoggingPushbackReader. Returns a vector containing the obj...

  • read-csv

    Reads CSV-data from input (String or java.io.Reader) into a lazy sequence of vectors. Valid options are :sepa...

  • read-instant-calendar

    To read an instant as a java.util.Calendar, bind *data-readers* to a map with this var as the value for the 'inst key. ...

  • read-instant-date

    To read an instant as a java.util.Date, bind *data-readers* to a map with this var as the value for the 'inst key. The t...

  • read-instant-timestamp

    To read an instant as a java.sql.Timestamp, bind *data-readers* to a map with this var as the value for the 'inst key. T...

  • read-json

    DEPRECATED; replaced by read-str. Reads one JSON value from input String or Reader. If keywordize? is true (default...

  • read-line

    Reads the next line from stream that is the current value of *in* .

  • read-str

    Reads one JSON value from input String. Options are the same as for read.

  • read-string

    Reads one object from the string s. Optionally include reader options, as specified in read. Note that read-string ...

  • read-string

    Reads one object from the string s. Returns nil when s is nil or empty. Reads data in the edn format (subset of Cloju...

  • read-string

    Reads one object from the string s. Returns nil when s is nil or empty. ***WARNING*** Note that read-string ca...

  • read-string

    Reads one object from the string s. Returns nil when s is nil or empty. Reads data in the edn format (subset of C...

  • reader

    Attempts to coerce its argument into an open java.io.Reader. Default implementations always return a java.io.Buffered...

  • reader-conditional

    Construct a data representation of a reader conditional. If true, splicing? indicates read-cond-splicing.

  • reader-conditional?

    Return true if the value is the data representation of a reader conditional

  • realized?

    Returns true if a value has been produced for a promise, delay, future or lazy sequence.

  • record?

    Returns true if x is a record

  • recur

    Rebinds and transfers control to the recursion point.

  • reduce

    f should be a function of 2 arguments. If val is not supplied, returns the result of applying f to the first 2 items i...

  • reduce

    f should be a function of 2 arguments. Returns a channel containing the single result of applying f to init and the fi...

  • reduce

    Like core/reduce except: When init is not provided, (f) is used. Maps are reduced with reduce-kv

  • reduce-kv

    Reduces an associative collection. f should be a function of 3 arguments. Returns the result of applying f to init, th...

  • reduced

    Wraps x in a way such that a reduce will terminate with the value x

  • reduced?

    Returns true if x is the result of a call to reduced

  • reducer

    Given a reducible collection, and a transformation function xf, returns a reducible collection, where any supplied red...

  • reductions

    Returns a lazy seq of the intermediate values of the reduction (as per reduce) of coll by f, starting with init.

  • ref

    Creates and returns a Ref with an initial value of x and zero or more options (in any order): :meta metadata-map ...

  • ref-history-count

    Returns the history count of a ref

  • ref-max-history

    Gets the max-history of a ref, or sets it and returns the ref

  • ref-min-history

    Gets the min-history of a ref, or sets it and returns the ref

  • ref-set

    Must be called in a transaction. Sets the value of ref. Returns val.

  • refer

    refers to all public vars of ns, subject to filters. filters can include at most one each of: :exclude list-of-symb...

  • refer-clojure

    Same as (refer 'clojure.core <filters>)

  • reflect

    Alpha - subject to change. Reflect on the type of obj (or obj itself if obj is a class). Return value and options ...

  • Reflector

    Protocol for reflection implementers.

  • reify

    reify creates an object implementing a protocol or interface. reify is a macro with the following structure: (reify ...

  • release-pending-sends

    Normally, actions sent directly or indirectly during another action are held until the action completes (changes the a...

  • rem

    remainder of dividing numerator by denominator.

  • remote-prepl

    Implements a prepl on in-reader and out-fn by forwarding to a remote [io-]prepl over a socket. Messages will be read ...

  • remove

    Returns a lazy sequence of the items in coll for which (pred item) returns logical false. pred must be free of side-ef...

  • remove

    Removes values in the reduction of coll for which (pred val) returns logical true. Foldable.

  • remove

    Removes the node at loc, returning the loc that would have preceded it in a depth-first walk.

  • remove-all-methods

    Removes all of the methods of multimethod.

  • remove-method

    Removes the method of multimethod associated with dispatch-value.

  • remove-ns

    Removes the namespace named by the symbol. Use with caution. Cannot be used to remove the clojure namespace.

  • remove-tap

    Remove f from the tap set.

  • remove-watch

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

  • rename

    Returns a rel of the maps in xrel with the keys in kmap renamed to the vals in kmap

  • rename-keys

    Returns the map with the keys in kmap renamed to the vals in kmap

  • renumbering-read

    Reads from reader, which must be a LineNumberingPushbackReader, while capturing the read string. If the read is succes...

  • repeat

    Returns a lazy (infinite!, or length n if supplied) sequence of xs.

  • repeatedly

    Takes a function of no args, presumably with side effects, and returns an infinite (or length n if supplied) lazy sequ...

  • repl

    REPL with predefined hooks for attachable socket server.

  • repl

    Generic, reusable, read-eval-print loop. By default, reads from *in*, writes to *out*, and prints exception summaries ...

  • repl-caught

    Default :caught hook for repl

  • repl-exception

    Returns the root cause of throwables

  • repl-init

    Initialize repl in user namespace and make standard repl requires.

  • repl-prompt

    Default :prompt hook for repl

  • repl-read

    Enhanced :read hook for repl supporting :repl/quit.

  • repl-read

    Default :read hook for repl. Reads from *in* which must either be an instance of LineNumberingPushbackReader or duplic...

  • repl-requires

    A sequence of lib specs that are applied to `require` by default when a new command-line REPL is started.

  • replace

    Given a map of replacement pairs and a vector/collection, returns a vector/seq with any elements = a key in smap repla...

  • replace

    Replaces all instance of match with replacement in s. match/replacement can be: string / string char / char ...

  • replace

    Replaces the node at this loc, without moving

  • replace-first

    Replaces the first instance of match with replacement in s. match/replacement can be: char / char string / st...

  • report

    Generic reporting function, may be overridden to plug in different report formats (e.g., TAP, JUnit). Assertions suc...

  • report-error

    Create and output an exception report for a Throwable to target. Options: :target - "file" (default), "stderr", "...

  • require

    Loads libs, skipping any that are already loaded. Each argument is either a libspec that identifies a lib, a prefix li...

  • requiring-resolve

    Resolves namespace-qualified sym per 'resolve'. If initial resolve fails, attempts to require sym's namespace and retrie...

  • reset!

    Sets the value of atom to newval without regard for the current value. Returns newval.

  • reset-meta!

    Atomically resets the metadata for a namespace/var/ref/agent/atom

  • reset-vals!

    Sets the value of atom to newval. Returns [old new], the value of the atom before and after the reset.

  • resolve

    same as (ns-resolve *ns* symbol) or (ns-resolve *ns* &env symbol)

  • resolve-class

    Given a class name, return that typeref's class bytes as an InputStream.

  • resolve-symbol

    Resolve a symbol s into its fully qualified namespace version

  • resource

    Returns the URL for a named resource. Use the context class loader if no loader is specified.

  • rest

    Returns a possibly empty seq of the items after the first. Calls seq on its argument.

  • restart-agent

    When an agent is failed, changes the agent state to new-state and then un-fails the agent so that sends are allowed ag...

  • resultset-seq

    Creates and returns a lazy sequence of structmaps corresponding to the rows in the java.sql.ResultSet rs

  • reverse

    Returns a seq of the items in coll in reverse order. Not lazy.

  • reverse

    Returns s with its characters reversed.

  • reversible?

    Returns true if coll implements Reversible

  • right

    Returns the loc of the right sibling of the node at this loc, or nil

  • rightmost

    Returns the loc of the rightmost sibling of the node at this loc, or self

  • rights

    Returns a seq of the right siblings of this loc

  • rint

    Returns the double closest to a and equal to a mathematical integer. If two values are equally close, return the even ...

  • root

    zips all the way up and returns the root node, reflecting any changes.

  • root-cause

    Returns the initial cause of an exception or error by peeling off all of its wrappers

  • root-cause

    Returns the initial cause of an exception or error by peeling off all of its wrappers

  • root-cause

    Returns the last 'cause' Throwable in a chain of Throwables.

  • round

    Returns the closest long to a. If equally close to two values, return the one closer to ##Inf. If a is ##NaN => 0 ...

  • rseq

    Returns, in constant time, a seq of the items in rev (which can be a vector or sorted-map), in reverse order. If rev i...

  • rsubseq

    sc must be a sorted collection, test(s) one of <, <=, > or >=. Returns a reverse seq of those entries with keys ek for...

  • rsubseq

    sc must be a sorted collection, test(s) one of <, <=, > or >=. Returns a reverse seq of those entries with keys ek for...

  • run!

    Runs the supplied procedure (via reduce), for purposes of side effects, on successive items in the collection. Returns...

  • run-all-tests

    Runs all tests in all namespaces; prints results. Optional argument is a regular expression; only namespaces with na...

  • run-test

    Runs a single test. Because the intent is to run a single test, there is no check for the namespace test-ns-hook.

  • run-test-var

    Runs the tests for a single Var, with fixtures executed around the test, and summary output after.

  • run-tests

    Runs all tests in the given namespaces; prints results. Defaults to current namespace if none given. Returns a map ...

S

  • satisfies?

    Returns true if x satisfies the protocol

  • sax-parser

    Create a new SAXParser

  • scalb

    Returns d * 2^scaleFactor, scaling by a factor of 2. If the exponent is between Double/MIN_EXPONENT and Double/MAX_EXP...

  • second

    Same as (first (next x))

  • seed

    Is used to signal that the cache should be created with a seed. The contract is that said cache should return an inst...

  • select

    Returns a set of the elements for which pred is true

  • select-keys

    Returns a map containing only those entries in map whose key is in keys

  • send

    Dispatch an action to an agent. Returns the agent immediately. Subsequently, in a thread from a thread pool, the state...

  • send-off

    Dispatch a potentially blocking action to an agent. Returns the agent immediately. Subsequently, in a separate thread,...

  • send-via

    Dispatch an action to an agent. Returns the agent immediately. Subsequently, in a thread supplied by executor, the sta...

  • seq

    Returns a seq on the collection. If the collection is empty, returns nil. (seq nil) returns nil. seq also works on ...

  • seq-to-map-for-destructuring

    Builds a map from a seq as described in https://clojure.org/reference/special_forms#keyword-arguments

  • seq-tree

    Takes a seq of events that logically represents a tree by each event being one of: enter-sub-tree event, exit-sub-tr...

  • seq-zip

    Returns a zipper for nested sequences, given a root sequence

  • seq?

    Return true if x implements ISeq

  • seqable?

    Return true if the seq function is supported for x

  • seque

    Creates a queued seq on another (presumably lazy) seq s. The queued seq will produce a concrete seq in the background,...

  • sequence

    Coerces coll to a (possibly empty) sequence, if it is not already one. Will not force a lazy seq. (sequence nil) yield...

  • sequential?

    Returns true if coll implements Sequential

  • set

    Returns a set of the distinct elements of coll.

  • set!

    Assigns a new value to a var or field.

  • set-agent-send-executor!

    Sets the ExecutorService to be used by send

  • set-agent-send-off-executor!

    Sets the ExecutorService to be used by send-off

  • set-break-handler!

    Register INT signal handler. After calling this, Ctrl-C will cause the given function f to be called with a single ar...

  • set-error-handler!

    Sets the error-handler of agent a to handler-fn. If an action being run by the agent throws an exception or doesn't p...

  • set-error-mode!

    Sets the error-mode of agent a to mode-keyword, which must be either :fail or :continue. If an action being run by th...

  • set-pprint-dispatch

    Set the pretty print dispatch function to a function matching (fn [obj] ...) where obj is the object to pretty print. Th...

  • set-test

    Experimental. Sets :test metadata of the named var to a fn with the given body. The var must already exist. Does no...

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

  • set?

    Returns true if x implements IPersistentSet

  • sexp-as-element

    Convert a single sexp into an Element

  • sexps-as-fragment

    Convert a compact prxml/hiccup-style data structure into the more formal tag/attrs/content format. A seq of elements ...

  • sh

    Passes the given strings to Runtime.exec() to launch a sub-process. Options are :in may be given followed by ...

  • short

    Coerce to short

  • short-array

    Creates an array of shorts

  • shorts

    Casts to shorts[]

  • shuffle

    Return a random permutation of coll

  • shutdown-agents

    Initiates a shutdown of the thread pools that back the agent system. Running actions will complete, but no new actions...

  • signum

    Returns the signum function of d - zero for zero, 1.0 if >0, -1.0 if <0. If d is ##NaN => ##NaN See: https://docs.or...

  • simple-dispatch

    The pretty print dispatch function for simple data structure format.

  • simple-ident?

    Return true if x is a symbol or keyword without a namespace

  • simple-keyword?

    Return true if x is a keyword without a namespace

  • simple-symbol?

    Return true if x is a symbol without a namespace

  • sin

    Returns the sine of an angle. If a is ##NaN, ##-Inf, ##Inf => ##NaN If a is zero => zero with the same sign as a S...

  • sinh

    Returns the hyperbolic sine of x, (e^x - e^-x)/2. If x is ##NaN => ##NaN If x is ##Inf or ##-Inf or zero => x See:...

  • skip-if-eol

    If the next character on stream s is a newline, skips it, otherwise leaves the stream untouched. Returns :line-start, ...

  • skip-whitespace

    Skips whitespace characters on stream s. Returns :line-start, :stream-end, or :body to indicate the relative location ...

  • sliding-buffer

    Returns a buffer of size n. When full, puts will complete, and be buffered, but oldest elements in buffer will be drop...

  • slurp

    Opens a reader on f and reads all its contents, returning a string. See clojure.java.io/reader for a complete list of ...

  • snapshot

    Returns a snapshot of a core.memo-placed memoization cache. By snapshot you can infer that what you get is only the ...

  • soft-cache-factory

    Returns a SoftReference cache. Cached values will be referred to with SoftReferences, allowing the values to be garba...

  • solo-mode

    Sets the solo mode of the mix. mode must be one of :mute or :pause

  • some

    Returns the first logical true value of (pred x) for any x in coll, else nil. One common idiom is to use a set as pre...

  • some->

    When expr is not nil, threads it into the first form (via ->), and when that result is not nil, through the next etc

  • some->>

    When expr is not nil, threads it into the first form (via ->>), and when that result is not nil, through the next etc

  • some-fn

    Takes a set of predicates and returns a function f that returns the first logical true value returned by one of its co...

  • some?

    Returns true if x is not nil, false otherwise.

  • sort

    Returns a sorted sequence of the items in coll. If no comparator is supplied, uses compare. comparator must implement...

  • sort-by

    Returns a sorted sequence of the items in coll, where the sort order is determined by comparing (keyfn item). If no c...

  • sorted-map

    keyval => key val Returns a new sorted map with supplied mappings. If any keys are equal, they are handled as if by...

  • sorted-map-by

    keyval => key val Returns a new sorted map with supplied mappings, using the supplied comparator. If any keys are e...

  • sorted-set

    Returns a new sorted set with supplied keys. Any equal keys are handled as if by repeated uses of conj.

  • sorted-set-by

    Returns a new sorted set with supplied keys, using the supplied comparator. Any equal keys are handled as if by repea...

  • sorted?

    Returns true if coll implements Sorted

  • source

    Prints the source code for the given symbol, if it can find it. This requires that the symbol resolve to a Var defined...

  • source-fn

    Returns a string of the source code for the given symbol, if it can find it. This requires that the symbol resolve to...

  • special-symbol?

    Returns true if s names a special form

  • spit

    Opposite of slurp. Opens f with writer, writes content, then closes f. Options passed to clojure.java.io/writer.

  • split

    Takes a predicate and a source channel and returns a vector of two channels, the first of which will contain the value...

  • split

    Splits string on a regular expression. Optional argument limit is the maximum number of parts. Not lazy. Returns vect...

  • split-at

    Returns a vector of [(take n coll) (drop n coll)]

  • split-lines

    Splits s on \n or \r\n. Trailing empty lines are not returned.

  • split-with

    Returns a vector of [(take-while pred coll) (drop-while pred coll)]

  • splitv-at

    Returns a vector of [(into [] (take n) coll) (drop n coll)]

  • spy

    Evaluates expr and may write the form and its result to the log. Returns the result of expr. Defaults to :debug log le...

  • spyf

    Evaluates expr and may write (format fmt result) to the log. Returns the result of expr. Defaults to :debug log level....

  • sqrt

    Returns the positive square root of a. If a is ##NaN or negative => ##NaN If a is ##Inf => ##Inf If a is zero => a...

  • stack-element-str

    Returns a (possibly unmunged) string representation of a StackTraceElement

  • stack-element-str

    Returns a (possibly unmunged) string representation of a StackTraceElement

  • StackTraceElement->vec

    Constructs a data representation for a StackTraceElement: [class method file line]

  • start

    Start an external command, defined in args. The process environment vars are inherited from the parent by default (u...

  • start-server

    Start a socket server given the specified opts: :address Host or address, string, defaults to loopback address :...

  • start-servers

    Start all servers specified in the system properties.

  • startparse-sax

    A startparse function suitable for use with clojure.xml/parse. Note that this function is open to XXE entity attacks, ...

  • startparse-sax-safe

    A startparse function suitable for use with clojure.xml/parse. External entity resolution is disabled to prevent XXE e...

  • starts-with?

    True if s starts with substr.

  • stderr

    Given a process, return the stderr of the external process (an InputStream)

  • stdin

    Given a process, return the stdin of the external process (an OutputStream)

  • stdout

    Given a process, return the stdout of the external process (an InputStream)

  • stop-server

    Stop server with name or use the server-name from *session* if none supplied. Returns true if server stopped successfu...

  • stop-servers

    Stop all servers ignores all errors, and returns nil.

  • str

    With no args, returns the empty string. With one arg x, returns x.toString(). (str nil) returns the empty string. Wit...

  • stream-into!

    Returns a new coll consisting of coll with all of the items of the stream conjoined. This is a terminal operation on t...

  • stream-reduce!

    Works like reduce but takes a java.util.stream.BaseStream as its source. Honors 'reduced', is a terminal operation on ...

  • stream-seq!

    Takes a java.util.stream.BaseStream instance s and returns a seq of its contents. This is a terminal operation on the ...

  • stream-transduce!

    Works like transduce but takes a java.util.stream.BaseStream as its source. This is a terminal operation on the stream...

  • string?

    Return true if x is a String

  • stringify-keys

    Recursively transforms all map keys from keywords to strings.

  • struct

    Returns a new structmap instance with the keys of the structure-basis. vals must be supplied for basis keys in order -...

  • struct-map

    Returns a new structmap instance with the keys of the structure-basis. keyvals may contain all, some or none of the ba...

  • sub

    Subscribes a channel to a topic of a pub. By default the channel will be closed when the source closes, but can be ...

  • subs

    Returns the substring of s beginning at start inclusive, and ending at end (defaults to length of string), exclusive.

  • subseq

    sc must be a sorted collection, test(s) one of <, <=, > or >=. Returns a seq of those entries with keys ek for which...

  • subseq

    sc must be a sorted collection, test(s) one of <, <=, > or >=. Returns a seq of those entries with keys ek for which...

  • subset?

    Is set1 a subset of set2?

  • subtract-exact

    Returns the difference of x and y, throws ArithmeticException on overflow. See: https://docs.oracle.com/javase/8/docs/...

  • subvec

    Returns a persistent vector of the items in vector from start (inclusive) to end (exclusive). If end is not supplied,...

  • successful?

    Returns true if the given test summary indicates all tests were successful, false otherwise.

  • summarize

    Reduce options specs into a options summary for printing at a terminal. Note that the specs argument should be the com...

  • supers

    Returns the immediate and indirect superclasses and interfaces of c, if any

  • superset?

    Is set1 a superset of set2?

  • swap!

    Atomically swaps the value of atom to be: (apply f current-value-of-atom args). Note that f may be called multiple t...

  • swap-vals!

    Atomically swaps the value of atom to be: (apply f current-value-of-atom args). Note that f may be called multiple t...

  • symbol

    Returns a Symbol with the given namespace and name. Arity-1 works on strings, keywords, and vars.

  • symbol?

    Return true if x is a Symbol

  • sync

    transaction-flags => TBD, pass nil for now Runs the exprs (in an implicit do) in a transaction that encompasses exp...

  • sync-deps

    Calls add-libs with any libs present in deps.edn but not yet present on the classpath. :aliases - coll of alias key...

  • syntax-quote

    Macro equivalent to the syntax-quote reader macro (`).

  • system-classpath

    Returns a sequence of File paths from the 'java.class.path' system property.

T

  • tagged-literal

    Construct a data representation of a tagged literal from a tag symbol and a form.

  • tagged-literal?

    Return true if the value is the data representation of a tagged literal

  • take

    Returns a lazy sequence of the first n items in coll, or all items if there are fewer than n. Returns a stateful tran...

  • take

    Returns a channel that will return, at most, n items from ch. After n items have been returned, or ch has been closed...

  • take

    Ends the reduction of coll after consuming n values.

  • take!

    Asynchronously takes a val from port, passing to fn1. Will pass nil if closed. If on-caller? (default true) is true, ...

  • take-last

    Returns a seq of the last n items in coll. Depending on the type of coll may be no better than linear time. For vect...

  • take-nth

    Returns a lazy seq of every nth item in coll. Returns a stateful transducer when no collection is provided.

  • take-while

    Returns a lazy sequence of successive items from coll while (pred item) returns logical true. pred must be free of sid...

  • take-while

    Ends the reduction of coll when (pred val) returns logical false.

  • tan

    Returns the tangent of an angle. If a is ##NaN, ##-Inf, ##Inf => ##NaN If a is zero => zero with the same sign as a ...

  • tanh

    Returns the hyperbolic tangent of x, sinh(x)/cosh(x). If x is ##NaN => ##NaN If x is zero => zero, with same sign ...

  • tap

    Copies the mult source onto the supplied channel. By default the channel will be closed when the source closes, but...

  • tap>

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

  • test

    test [v] finds fn at key :test in var metadata and calls it, presuming failure will throw exception

  • test-all-vars

    Calls test-vars on every var interned in the namespace, with fixtures.

  • test-ns

    If the namespace defines a function named test-ns-hook, calls that. Otherwise, calls test-all-vars on the namespace. ...

  • test-var

    If v has a function in its :test metadata, calls that function, with *testing-vars* bound to (conj *testing-vars* v).

  • test-vars

    Groups vars by their namespace and runs test-var on them with appropriate fixtures applied.

  • testing

    Adds a new string to the list of testing contexts. May be nested, but must occur inside a test function (deftest).

  • testing-contexts-str

    Returns a string representation of the current test context. Joins strings in *testing-contexts* with spaces.

  • testing-vars-str

    Returns a string representation of the current test. Renders names in *testing-vars* as a list, then the source file ...

  • the-ns

    If passed a namespace, returns it. Else, when passed a symbol, returns the namespace named by it, throwing an exceptio...

  • thread

    Executes the body in another thread, returning immediately to the calling thread. Returns a channel which will receive...

  • thread-bound?

    Returns true if all of the vars provided as arguments have thread-local bindings. Implies that set!'ing the provided ...

  • thread-call

    Executes f in another thread, returning immediately to the calling thread. Returns a channel which will receive the re...

  • thread-stopper

    Returns a function that takes one arg and uses that as an exception message to stop the given thread. Defaults to the...

  • through

    The basic hit/miss logic for the cache system. Expects a wrap function and value function. The wrap function takes t...

  • through-cache

    The basic hit/miss logic for the cache system. Like through but always has the cache argument in the first position f...

  • throw

    Throws an instance of Throwable.

  • Throwable->map

    Constructs a data representation for a Throwable with keys: :cause - root cause message :phase - error phase ...

  • time

    Evaluates expr and prints the time it took. Returns the value of expr.

  • timeout

    Returns a channel that will close after msecs

  • to-array

    Returns an array of Objects containing the contents of coll, which can be any Collection. Maps to java.util.Collectio...

  • to-array-2d

    Returns a (potentially-ragged) 2-dimensional array of Objects containing the contents of coll, which can be any Collec...

  • to-chan!

    Creates and returns a channel which contains the contents of coll, closing when exhausted. If accessing coll might ...

  • to-chan!!

    Like to-chan! for use when accessing coll might block, e.g. a lazy seq of blocking operations

  • to-degrees

    Converts an angle in radians to an approximate equivalent angle in degrees. See: https://docs.oracle.com/javase/8/docs...

  • to-file

    Coerce f to a file per clojure.java.io/file and return a ProcessBuilder.Redirect writing to the file. Set ':append' in...

  • to-pattern-row

    Take an unprocessed pattern expression and an action expression and return a pattern row of the processed pattern exp...

  • to-radians

    Converts an angle in degrees to an approximate equivalent angle in radians. See: https://docs.oracle.com/javase/8/docs...

  • to-source

    Returns a Clojure form that, when executed, is truthy if the pattern matches the occurrence. Dispatches on the `type` ...

  • toggle

    Atomically sets the state(s) of one or more channels in a mix. The state map is a map of channels -> channel-state-map...

  • trace

    Trace level logging using print-style args. Use the 'logging.readable' namespace to avoid wrapping args in pr-str.

  • tracef

    Trace level logging using format. Use the 'logging.readable' namespace to avoid wrapping args in pr-str.

  • trampoline

    trampoline can be used to convert algorithms requiring mutual recursion without stack consumption. Calls f with suppli...

  • transduce

    reduce with a transformation of f (xf). If init is not supplied, (f) will be called to produce it. f should be a reduc...

  • transduce

    async/reduces a channel with a transformation (xform f). Returns a channel containing the result. ch must close befor...

  • transient

    Returns a new, transient version of the collection, in constant time. Transients support a parallel set of 'changing'...

  • tree-seq

    Returns a lazy sequence of the nodes in a tree, via a depth-first walk. branch? must be a fn of one arg that returns ...

  • trim

    Removes whitespace from both ends of string.

  • trim-newline

    Removes all trailing newline \n or return \r characters from string. Similar to Perl's chomp.

  • triml

    Removes whitespace from the left side of string.

  • trimr

    Removes whitespace from the right side of string.

  • true?

    Returns true if x is the value true, false otherwise.

  • try

    try / catch / finally exception handling.

  • try-expr

    Used by the 'is' macro to catch unexpected exceptions. You don't call this.

  • ttl

    Unlike many of the other core.memo memoization functions, `memo-ttl`'s cache policy is time-based rather than algorit...

  • ttl-cache-factory

    Returns a TTL cache with the cache and expiration-table initialized to `base` -- each with the same time-to-live. ...

  • type

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

  • type-reflect

    Alpha - subject to change. Reflect on a typeref, returning a map with :bases, :flags, and :members. In the discussi...

  • typename

    Returns Java name as returned by ASM getClassName, e.g. byte[], java.lang.String[]

  • TypeReference

    A TypeReference can be unambiguously converted to a type name on the host platform. All typerefs are normalized i...

U

  • ulp

    Returns the size of an ulp (unit in last place) for d. If d is ##NaN => ##NaN If d is ##Inf or ##-Inf => ##Inf If ...

  • unblocking-buffer?

    Returns true if a channel created with buff will never block. That is to say, puts into this buffer will never cause ...

  • unchecked-add

    Returns the sum of x and y, both long. Note - uses a primitive operator subject to overflow.

  • unchecked-add-int

    Returns the sum of x and y, both int. Note - uses a primitive operator subject to overflow.

  • unchecked-byte

    Coerce to byte. Subject to rounding or truncation.

  • unchecked-char

    Coerce to char. Subject to rounding or truncation.

  • unchecked-dec

    Returns a number one less than x, a long. Note - uses a primitive operator subject to overflow.

  • unchecked-dec-int

    Returns a number one less than x, an int. Note - uses a primitive operator subject to overflow.

  • unchecked-divide-int

    Returns the division of x by y, both int. Note - uses a primitive operator subject to truncation.

  • unchecked-double

    Coerce to double. Subject to rounding.

  • unchecked-float

    Coerce to float. Subject to rounding.

  • unchecked-inc

    Returns a number one greater than x, a long. Note - uses a primitive operator subject to overflow.

  • unchecked-inc-int

    Returns a number one greater than x, an int. Note - uses a primitive operator subject to overflow.

  • unchecked-int

    Coerce to int. Subject to rounding or truncation.

  • unchecked-long

    Coerce to long. Subject to rounding or truncation.

  • unchecked-multiply

    Returns the product of x and y, both long. Note - uses a primitive operator subject to overflow.

  • unchecked-multiply-int

    Returns the product of x and y, both int. Note - uses a primitive operator subject to overflow.

  • unchecked-negate

    Returns the negation of x, a long. Note - uses a primitive operator subject to overflow.

  • unchecked-negate-int

    Returns the negation of x, an int. Note - uses a primitive operator subject to overflow.

  • unchecked-remainder-int

    Returns the remainder of division of x by y, both int. Note - uses a primitive operator subject to truncation.

  • unchecked-short

    Coerce to short. Subject to rounding or truncation.

  • unchecked-subtract

    Returns the difference of x and y, both long. Note - uses a primitive operator subject to overflow.

  • unchecked-subtract-int

    Returns the difference of x and y, both int. Note - uses a primitive operator subject to overflow.

  • underive

    Removes a parent/child relationship between parent and tag. h must be a hierarchy obtained from make-hierarchy, if not...

  • union

    Return a set that is the union of the input sets

  • unmix

    Removes ch as an input to the mix

  • unmix-all

    removes all inputs from the mix

  • unreduced

    If x is reduced?, returns (deref x), else returns x

  • unsigned-bit-shift-right

    Bitwise shift right, without sign-extension.

  • unsub

    Unsubscribes a channel from a topic of a pub

  • unsub-all

    Unsubscribes all channels from a pub, or a topic of a pub

  • untap

    Disconnects a target channel from a mult

  • untap-all

    Disconnects all target channels from a mult

  • up

    Returns the loc of the parent of the node at this loc, or nil if at the top

  • update

    'Updates' a value in an associative structure, where k is a key and f is a function that will take the old value and...

  • update-in

    'Updates' a value in a nested associative structure, where ks is a sequence of keys and f is a function that will take...

  • update-keys

    m f => {(f k) v ...} Given a map m and a function f of 1-argument, returns a new map whose keys are the result of a...

  • update-proxy

    Takes a proxy instance and a map of strings (which must correspond to methods of the proxy superclass/superinterfaces)...

  • update-vals

    m f => {k (f v) ...} Given a map m and a function f of 1-argument, returns a new map where the keys of m are mapped...

  • upper-case

    Converts string to all upper-case.

  • uri-file

    Dummy file name for :require'ing xmlns uri

  • uri?

    Return true if x is a java.net.URI

  • urls

    Returns a sequence of java.net.URL objects representing locations which this classloader will search for classes and r...

  • use

    Like 'require, but also refers to each lib's namespace using clojure.core/refer. Use :use in the ns macro in preferenc...

  • use-fixtures

    Wrap test runs in a fixture function to perform setup and teardown. Using a fixture-type of :each wraps every test i...

  • uuid?

    Return true if x is a java.util.UUID

V

  • val

    Returns the value in the map entry.

  • validated

    Return a function which constructs an instant by calling constructor after first validating that those arguments are in ...

  • vals

    Returns a sequence of the map's values, in the same order as (seq map).

  • var

    Resolves a symbol to its Var object.

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

  • var?

    Returns true if v is of type clojure.lang.Var

  • vary-meta

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

  • vec

    Creates a new vector containing the contents of coll. Java arrays will be aliased and should not be modified.

  • vector

    Creates a new vector containing the args.

  • vector-of

    Creates a new vector of a single primitive type t, where t is one of :int :long :float :double :byte :short :char or :...

  • vector-zip

    Returns a zipper for nested vectors, given a root vector

  • vector?

    Return true if x implements IPersistentVector

  • volatile!

    Creates and returns a Volatile with an initial value of val.

  • volatile?

    Returns true if x is a volatile.

  • vreset!

    Sets the value of volatile to newval without regard for the current value. Returns newval.

  • vswap!

    Non-atomically swaps the value of the volatile as if: (apply f current-value-of-vol args). Returns the value that ...

W

  • walk

    Traverses form, an arbitrary data structure. inner and outer are functions. Applies inner to each element of form, b...

  • warn

    Warn level logging using print-style args. Use the 'logging.readable' namespace to avoid wrapping args in pr-str.

  • warnf

    Warn level logging using format. Use the 'logging.readable' namespace to avoid wrapping args in pr-str.

  • when

    Evaluates test. If logical true, evaluates body in an implicit do.

  • when-first

    bindings => x xs Roughly the same as (when (seq xs) (let [x (first xs)] body)) but xs is evaluated only once

  • when-let

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

  • when-not

    Evaluates test. If logical false, evaluates body in an implicit do.

  • when-some

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

  • while

    Repeatedly executes body while test expression is true. Presumes some side-effect will cause test to become false/nil....

  • wildcards-and-duplicates

    Returns a vector of two elements: the set of all wildcards and the set of duplicate wildcards. The underbar _ is ex...

  • 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

    Executes body in the context of thread-local bindings for several vars that often need to be set!: *ns* *warn-on-refle...

  • with-bindings*

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

  • with-in-str

    Evaluates body in a context in which *in* is bound to a fresh StringReader initialized with the string s.

  • with-junit-output

    Execute body with modified test-is reporting functions that write JUnit-compatible XML output.

  • with-local-vars

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

  • with-logs

    Evaluates exprs in a context in which *out* and *err* write to the log. The specified logger-ns value will be used to ...

  • with-meta

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

  • with-open

    bindings => [name init ...] Evaluates body in a try expression with names bound to the values of the inits, and a f...

  • with-out-str

    Evaluates exprs in a context in which *out* is bound to a fresh StringWriter. Returns the string created by any neste...

  • with-pprint-dispatch

    Execute body with the pretty print dispatch function bound to function.

  • with-precision

    Sets the precision and rounding mode to be used for BigDecimal operations. Usage: (with-precision 10 (/ 1M 3)) or: ...

  • with-read-known

    Evaluates body with *read-eval* set to a "known" value, i.e. substituting true for :unknown if necessary.

  • with-redefs

    binding => var-symbol temp-value-expr Temporarily redefines Vars while executing the body. The temp-value-exprs wi...

  • with-redefs-fn

    Temporarily redefines Vars during a call to func. Each val of binding-map will replace the root value of its key whic...

  • with-sh-dir

    Sets the directory for use with sh, see sh for details.

  • with-sh-env

    Sets the environment for use with sh, see sh for details.

  • with-tap-output

    Execute body with modified test reporting functions that produce TAP output

  • with-test

    Takes any definition form (that returns a Var) as the first argument. Remaining body goes in the :test metadata functi...

  • with-test-out

    Runs body with *out* bound to the value of *test-out*.

  • write

    Write JSON-formatted output to a java.io.Writer. Options are key-value pairs, valid options are: :escape-unicode...

  • write

    Write an object subject to the current bindings of the printer control variables. Use the kw-args argument to override i...

  • write-csv

    Writes data to writer in CSV-format. Valid options are :separator (Default \,) :quote (Default \") :q...

  • write-json

    DEPRECATED; replaced by 'write'. Print object to PrintWriter out as JSON

  • write-out

    Write an object to *out* subject to the current bindings of the printer control variables. Use the kw-args argument to ...

  • write-str

    Converts x to a JSON-formatted string. Options are the same as write.

  • writer

    Attempts to coerce its argument into an open java.io.Writer. Default implementations always return a java.io.Buffered...

X

  • xml-comment

    Create a Comment node

  • xml-seq

    A tree seq on the xml elements as per xml/parse

  • xml-zip

    Returns a zipper for xml elements (as from xml/parse), given a root element

Z

  • zero?

    Returns true if num is zero, else false

  • zipmap

    Returns a map with the keys mapped to the corresponding vals.

  • zipper

    Creates a new zipper structure. branch? is a fn that, given a node, returns true if can have children, even if it ...

^

  • ^

    Metadata. ^{:k v} form attaches metadata to the next form.

`

  • `

    Syntax quote. Resolves symbols to fully-qualified names; allows ~ and ~@.

~

  • ~

    Unquote. Used inside syntax-quoted forms to evaluate an expression.

  • ~@

    Unquote-splicing. Splices a sequence into the surrounding form.