Clojure Standard Libraryλ︎
Examples of using the functions from the
clojure.core namespace and other important functions, macros and special forms that are part of the
There are approximately 700 functions and macros available in the
clojure.core namespace. These are referred to as the Clojure Standard Library.
Counting functions in
To get an accurate number of functions, call the
ns-publics function with a namespace name
Functions, Macros and Special formsλ︎
The majority of times macros and special forms act just like any other defined function (i.e.
A macro is a piece of code that evaluates into a function when read by the macro reader, or by the developer using
macroexpand function. An expanded macro may also contain macros, so expansion could take place several levels (
macros are not composable like functions, so functions like
map cannot use a macro (use a function instead).
Special forms are built into the Clojure runtime, so will not be found in clojure.core
- Special forms:
- Special forms for Java interop: