Index of Public Functions and Variables - Clojure v1.12.4 (stable)

This page has an alphabetical index of all the documented functions and variables in Clojure.

Shortcuts:
A B C D E F G H I J K L M
N O P Q R S T U V W X Y Z
Other

A

 *agent*                      var           clojure.core       The agent currently running an action on this thre...
 *assert*                     var           clojure.core       When set to logical false, 'assert' will omit asse...
 ->ArrayChunk                 function      clojure.core       Positional factory function for class clojure.core...
 ->AsmReflector               function      clojure.reflect    Positional factory function for class clojure.refl...
 abs                          function      clojure.core       Returns the absolute value of a. If a is Long/MIN_...
 accessor                     function      clojure.core       Returns a fn that, given an instance of a structma...
 aclone                       function      clojure.core       Returns a clone of the Java array. Works on arrays...
 acos                         function      clojure.math       Returns the arc cosine of a, in the range 0.0 to p...
 add-classpath                function      clojure.core       DEPRECATED   Adds the url (String or URL object) t...
 add-exact                    function      clojure.math       Returns the sum of x and y, throws ArithmeticExcep...
 add-lib                      function      clojure.repl.deps  Given a lib that is not yet on the repl classpath,...
 add-libs                     function      clojure.repl.deps  Given lib-coords, a map of lib to coord, will reso...
 add-local-javadoc            function      clojure.java.javadoc Adds to the list of local Javadoc paths..
 add-remote-javadoc           function      clojure.java.javadoc Adds to the list of remote Javadoc URLs.  packag...
 add-tap                      function      clojure.core       adds f, a fn of one argument, to the tap set. This...
 add-watch                    function      clojure.core       Adds a watch function to an agent/atom/var/ref ref...
 agent                        function      clojure.core       Creates and returns an agent with an initial value...
 agent-error                  function      clojure.core       Returns the exception thrown during an asynchronou...
 agent-errors                 function      clojure.core       DEPRECATED: Use 'agent-error' instead. Returns a s...
 aget                         function      clojure.core       Returns the value at the index/indices. Works on J...
 alength                      function      clojure.core       Returns the length of the Java array. Works on arr...
 alias                        function      clojure.core       Add an alias in the current namespace to another n...
 all-ns                       function      clojure.core       Returns a sequence of all namespaces..
 alter                        function      clojure.core       Must be called in a transaction. Sets the in-trans...
 alter-meta!                  function      clojure.core       Atomically sets the metadata for a namespace/var/r...
 alter-var-root               function      clojure.core       Atomically alters the root binding of var v by app...
 amap                         macro         clojure.core       Maps an expression across an array a, using an ind...
 ancestors                    function      clojure.core       Returns the immediate and indirect parents of tag,...
 and                          macro         clojure.core       Evaluates exprs one at a time, from left to right....
 any?                         function      clojure.core       Returns true given any argument..
 append!                      function      clojure.core.reducers .adds x to acc and returns acc.
 append-child                 function      clojure.zip        Inserts the item as the rightmost child of the nod...
 apply                        function      clojure.core       Applies fn f to the argument list formed by prepen...
 apply-template               function      clojure.template   For use in macros.  argv is an argument list, as i...
 apropos                      function      clojure.repl       Given a regular expression or stringable thing, re...
 are                          macro         clojure.test       Checks multiple assertions with a template express...
 areduce                      macro         clojure.core       Reduces an expression across an array a, using an ...
 array-map                    function      clojure.core       Constructs an array-map. If any keys are equal, th...
 ArrayChunk                   type          clojure.core       
 ::as                         spec          clojure.core.specs.alpha (and simple-symbol? (not= (quote &) %)).
 as->                         macro         clojure.core       Binds name to expr, evaluates the first form in th...
 ::as-alias                   spec          clojure.core.specs.alpha simple-symbol?.
 as-file                      function      clojure.java.io    Coerce argument to a file..
 as-relative-path             function      clojure.java.io    Take an as-file-able thing and return a string if ...
 as-url                       function      clojure.java.io    Coerce argument to a URL..
 aset                         function      clojure.core       Sets the value at the index/indices. Works on Java...
 aset-boolean                 function      clojure.core       Sets the value at the index/indices. Works on arra...
 aset-byte                    function      clojure.core       Sets the value at the index/indices. Works on arra...
 aset-char                    function      clojure.core       Sets the value at the index/indices. Works on arra...
 aset-double                  function      clojure.core       Sets the value at the index/indices. Works on arra...
 aset-float                   function      clojure.core       Sets the value at the index/indices. Works on arra...
 aset-int                     function      clojure.core       Sets the value at the index/indices. Works on arra...
 aset-long                    function      clojure.core       Sets the value at the index/indices. Works on arra...
 aset-short                   function      clojure.core       Sets the value at the index/indices. Works on arra...
 asin                         function      clojure.math       Returns the arc sine of an angle, in the range -pi...
 AsmReflector                 type          clojure.reflect    
 assert                       macro         clojure.core       Evaluates expression x and throws an AssertionErro...
 assert-any                   function      clojure.test       Returns generic assertion code for any test, inclu...
 assert-predicate             function      clojure.test       Returns generic assertion code for any functional ...
 assoc                        function      clojure.core       assoc[iate]. When applied to a map, returns a new ...
 assoc!                       function      clojure.core       When applied to a transient map, adds mapping of k...
 assoc-in                     function      clojure.core       Associates a value in a nested associative structu...
 associative?                 function      clojure.core       Returns true if coll implements Associative.
 atan                         function      clojure.math       Returns the arc tangent of a, in the range of -pi/...
 atan2                        function      clojure.math       Returns the angle theta from the conversion of rec...
 atom                         function      clojure.core       Creates and returns an Atom with an initial value ...
 await                        function      clojure.core       Blocks the current thread (indefinitely!) until al...
 await-for                    function      clojure.core       Blocks the current thread until all actions dispat...

  

B

 bases                        function      clojure.core       Returns the immediate superclass and direct interf...
 bean                         function      clojure.core       Takes a Java object and returns a read-only implem...
 bigdec                       function      clojure.core       Coerce to BigDecimal.
 bigint                       function      clojure.core       Coerce to BigInt.
 biginteger                   function      clojure.core       Coerce to BigInteger.
 binding                      macro         clojure.core       binding => var-symbol init-expr  Creates new bindi...
 ::binding                    spec          clojure.core.specs.alpha (cat :form :clojure.core.specs.alpha/binding...
 ::binding-form               spec          clojure.core.specs.alpha (or :local-symbol :clojure.core.specs.alpha/...
 ::bindings                   spec          clojure.core.specs.alpha (and vector? even-number-of-forms? (* :cloju...
 bit-and                      function      clojure.core       Bitwise and.
 bit-and-not                  function      clojure.core       Bitwise and with complement.
 bit-clear                    function      clojure.core       Clear bit at index n.
 bit-flip                     function      clojure.core       Flip bit at index n.
 bit-not                      function      clojure.core       Bitwise complement.
 bit-or                       function      clojure.core       Bitwise or.
 bit-set                      function      clojure.core       Set bit at index n.
 bit-shift-left               function      clojure.core       Bitwise shift left.
 bit-shift-right              function      clojure.core       Bitwise shift right.
 bit-test                     function      clojure.core       Test bit at index n.
 bit-xor                      function      clojure.core       Bitwise exclusive or.
 blank?                       function      clojure.string     True if s is nil, empty, or contains only whitespa...
 boolean                      function      clojure.core       Coerce to boolean.
 boolean-array                function      clojure.core       Creates an array of booleans.
 boolean?                     function      clojure.core       Return true if x is a Boolean.
 booleans                     function      clojure.core       Casts to boolean[].
 bound-fn                     macro         clojure.core       Returns a function defined by the given fntail, wh...
 bound-fn*                    function      clojure.core       Returns a function, which will install the same bi...
 bound?                       function      clojure.core       Returns true if all of the vars provided as argume...
 bounded-count                function      clojure.core       If coll is counted? returns its count, else will c...
 branch?                      function      clojure.zip        Returns true if the node at loc is a branch.
 browse-url                   function      clojure.java.browse Open url in a browser.
 butlast                      function      clojure.core       Return a seq of all but the last item in coll, in ...
 byte                         function      clojure.core       Coerce to byte.
 byte-array                   function      clojure.core       Creates an array of bytes.
 bytes                        function      clojure.core       Casts to bytes[].
 bytes?                       function      clojure.core       Return true if x is a byte array.

  

C

 *clojure-version*            dynamic var   clojure.core       The version info for Clojure core, as a map contai...
 *command-line-args*          var           clojure.core       A sequence of the supplied command line arguments,...
 *compile-files*              var           clojure.core       Set to true when compiling files, false otherwise..
 *compile-path*               var           clojure.core       Specifies the directory where 'compile' will write...
 *compiler-options*           var           clojure.core       A map of keys to options. Note, when binding dynam...
 ->Cat                        function      clojure.core.reducers Positional factory function for class clojure.c...
 ->Constructor                function      clojure.reflect    Positional factory function for class clojure.refl...
 capitalize                   function      clojure.string     Converts first character of the string to upper-ca...
 case                         macro         clojure.core       Takes an expression, and a set of clauses.  Each c...
 cast                         function      clojure.core       Throws a ClassCastException if x is not a c, else ...
 cat                          function      clojure.core       A transducer which concatenates the contents of ea...
 cat                          function      clojure.core.reducers A high-performance combining fn that yields the...
 Cat                          type          clojure.core.reducers 
 catch                        special syntax clojure.core      Syntax for use with try.  Please see https://cloju...
 cbrt                         function      clojure.math       Returns the cube root of a. If a is ##NaN => ##NaN...
 ceil                         function      clojure.math       Returns the smallest double greater than or equal ...
 char                         function      clojure.core       Coerce to char.
 char-array                   function      clojure.core       Creates an array of chars.
 char-escape-string           var           clojure.core       Returns escape string for char or nil if none.
 char-name-string             var           clojure.core       Returns name string for char or nil if none.
 char?                        function      clojure.core       Return true if x is a Character.
 chars                        function      clojure.core       Casts to chars[].
 children                     function      clojure.zip        Returns a seq of the children of node at loc, whic...
 cl-format                    function      clojure.pprint     An implementation of a Common Lisp compatible form...
 class                        function      clojure.core       Returns the Class of x.
 ::class-ident                spec          clojure.core.specs.alpha (or :class simple-symbol? :class-name string...
 class?                       function      clojure.core       Returns true if x is an instance of Class.
 ClassResolver                protocol      clojure.reflect    
 clear-agent-errors           function      clojure.core       DEPRECATED: Use 'restart-agent' instead. Clears an...
 clojure-version              function      clojure.core       Returns clojure version as a printable string..
 code-dispatch                multimethod   clojure.pprint     The pretty print dispatch function for pretty prin...
 Coercions                    protocol      clojure.java.io    Coerce between various 'resource-namish' things..
 coll-reduce                  function      clojure.core.protocols 
 coll?                        function      clojure.core       Returns true if x implements IPersistentCollection.
 CollReduce                   protocol      clojure.core.protocols Protocol for collection types that can impleme...
 comment                      macro         clojure.core       Ignores body, yields nil.
 commute                      function      clojure.core       Must be called in a transaction. Sets the in-trans...
 comp                         function      clojure.core       Takes a set of functions and returns a fn that is ...
 comparator                   function      clojure.core       Returns an implementation of java.util.Comparator ...
 compare                      function      clojure.core       Comparator. Returns a negative number, zero, or a ...
 compare-and-set!             function      clojure.core       Atomically sets the value of atom to newval if and...
 compile                      function      clojure.core       Compiles the namespace named by the symbol lib int...
 complement                   function      clojure.core       Takes a fn f and returns a fn that takes the same ...
 completing                   function      clojure.core       Takes a reducing function f of 2 args and returns ...
 compose-fixtures             function      clojure.test       Composes two fixture functions, creating a new fix...
 concat                       function      clojure.core       Returns a lazy seq representing the concatenation ...
 cond                         macro         clojure.core       Takes a set of test/expr pairs. It evaluates each ...
 cond->                       macro         clojure.core       Takes an expression and a set of test/form pairs. ...
 cond->>                      macro         clojure.core       Takes an expression and a set of test/form pairs. ...
 condp                        macro         clojure.core       Takes a binary predicate, an expression, and a set...
 conj                         function      clojure.core       conj[oin]. Returns a new collection with the xs 'a...
 conj!                        function      clojure.core       Adds x to the transient collection, and return col...
 cons                         function      clojure.core       Returns a new seq where x is the first element and...
 constantly                   function      clojure.core       Returns a function that takes any number of argume...
 construct-proxy              function      clojure.core       Takes a proxy class and any arguments for its supe...
 Constructor                  record        clojure.reflect    
 ::constructors               spec          clojure.core.specs.alpha (map-of :clojure.core.specs.alpha/signature ...
 contains?                    function      clojure.core       Returns true if key is present in the given collec...
 copy                         function      clojure.java.io    Copies input to output.  Returns nil or throws IOE...
 copy-sign                    function      clojure.math       Returns a double with the magnitude of the first a...
 cos                          function      clojure.math       Returns the cosine of an angle. If a is ##NaN, ##-...
 cosh                         function      clojure.math       Returns the hyperbolic cosine of x, (e^x + e^-x)/2...
 count                        function      clojure.core       Returns the number of items in the collection. (co...
 counted?                     function      clojure.core       Returns true if coll implements count in constant ...
 create-ns                    function      clojure.core       Create a new namespace named by the symbol if one ...
 create-struct                function      clojure.core       Returns a structure basis object..
 current-basis                function      clojure.java.basis Return the current basis, which may have been modi...
 cycle                        function      clojure.core       Returns a lazy (infinite!) sequence of repetitions...

  

D

 *data-readers*               dynamic var   clojure.core       Map from reader tag symbols to data reader Vars.  ...
 *default-data-reader-fn*     dynamic var   clojure.core       When no data reader is found for a tag and *defaul...
 Datafiable                   protocol      clojure.core.protocols 
 datafy                       function      clojure.datafy     Attempts to return x as data. datafy will return t...
 datafy                       function      clojure.core.protocols return a representation of o as data (default ...
 dec                          function      clojure.core       Returns a number one less than num. Does not auto-...
 dec'                         function      clojure.core       Returns a number one less than num. Supports arbit...
 decimal?                     function      clojure.core       Returns true if n is a BigDecimal.
 declare                      macro         clojure.core       defs the supplied var names with no bindings, usef...
 decrement-exact              function      clojure.math       Returns a decremented by 1, throws ArithmeticExcep...
 dedupe                       function      clojure.core       Returns a lazy sequence removing consecutive dupli...
 def                          special form  clojure.core       Creates and interns a global var with the name of ...
 default-data-readers         var           clojure.core       Default map of data reader functions provided by C...
 definline                    macro         clojure.core       Experimental - like defmacro, except defines a nam...
 definterface                 macro         clojure.core       Creates a new Java interface with the given name a...
 defmacro                     macro         clojure.core       Like defn, but the resulting function name is decl...
 defmethod                    macro         clojure.core       Creates and installs a new method of multimethod a...
 defmulti                     macro         clojure.core       Creates a new multimethod with the associated disp...
 defn                         macro         clojure.core       Same as (def name (fn [params* ] exprs*)) or (def ...
 defn-                        macro         clojure.core       same as defn, yielding non-public def.
 ::defn-args                  spec          clojure.core.specs.alpha (cat :fn-name simple-symbol? :docstring (? s...
 defonce                      macro         clojure.core       defs name to have the root value of the expr iff t...
 defprotocol                  macro         clojure.core       A protocol is a named set of named methods and the...
 defrecord                    macro         clojure.core       (defrecord name [fields*]  options* specs*)  Optio...
 defstruct                    macro         clojure.core       Same as (def name (create-struct keys...)).
 deftest                      macro         clojure.test       Defines a test function with no arguments.  Test f...
 deftest-                     macro         clojure.test       Like deftest but creates a private var..
 deftype                      macro         clojure.core       (deftype name [fields*]  options* specs*)  Options...
 delay                        macro         clojure.core       Takes a body of expressions and yields a Delay obj...
 delay?                       function      clojure.core       returns true if x is a Delay created with delay.
 delete-file                  function      clojure.java.io    Delete file f. If silently is nil or false, raise ...
 deliver                      function      clojure.core       Delivers the supplied value to the promise, releas...
 demunge                      function      clojure.main       Given a string representation of a fn class, as in...
 demunge                      function      clojure.repl       Given a string representation of a fn class, as in...
 denominator                  function      clojure.core       Returns the denominator part of a Ratio..
 deref                        function      clojure.core       Also reader macro: @ref/@agent/@var/@atom/@delay/@...
 derive                       function      clojure.core       Establishes a parent/child relationship between pa...
 descendants                  function      clojure.core       Returns the immediate and indirect children of tag...
 diff                         function      clojure.data       Recursively compares a and b, returning a tuple of...
 Diff                         protocol      clojure.data       Implementation detail. Subject to change..
 diff-similar                 function      clojure.data       Implementation detail. Subject to change..
 difference                   function      clojure.set        Return a set that is the first set without element...
 dir                          macro         clojure.repl       Prints a sorted directory of public vars in a name...
 dir-fn                       function      clojure.repl       Returns a sorted seq of symbols naming public vars...
 disable-external-entities    function      clojure.xml        Modifies a SAXParser to disable external entity re...
 disj                         function      clojure.core       disj[oin]. Returns a new set of the same (hashed/s...
 disj!                        function      clojure.core       disj[oin]. Returns a transient set of the same (ha...
 dissoc                       function      clojure.core       dissoc[iate]. Returns a new map of the same (hashe...
 dissoc!                      function      clojure.core       Returns a transient map that doesn't contain a map...
 distinct                     function      clojure.core       Returns a lazy sequence of the elements of coll wi...
 distinct?                    function      clojure.core       Returns true if no two of the arguments are =.
 do                           special form  clojure.core       Evaluates the expressions in order and returns the...
 do-reflect                   function      clojure.reflect    
 do-report                    function      clojure.test       Add file and line information to a test result and...
 do-template                  macro         clojure.template   Repeatedly copies expr (in a do block) for each gr...
 doall                        function      clojure.core       When lazy sequences are produced via functions tha...
 doc                          macro         clojure.repl       Prints documentation for a var or special form giv...
 dorun                        function      clojure.core       When lazy sequences are produced via functions tha...
 doseq                        macro         clojure.core       Repeatedly executes body (presumably for side-effe...
 dosync                       macro         clojure.core       Runs the exprs (in an implicit do) in a transactio...
 dotimes                      macro         clojure.core       bindings => name n  Repeatedly executes body (pres...
 doto                         macro         clojure.core       Evaluates x then calls all of the methods and func...
 double                       function      clojure.core       Coerce to double.
 double-array                 function      clojure.core       Creates an array of doubles.
 double?                      function      clojure.core       Return true if x is a Double.