Control Flow
Takes an expression, and a set of clauses. Each clause can take the form of either: test-constant result-expr (...
macroclojure.core
Takes a set of test/expr pairs. It evaluates each test one at a time. If a test returns logical true, cond evaluates ...
macroclojure.core
Takes a binary predicate, an expression, and a set of clauses. Each clause can take the form of either: test-expr r...
macroclojure.core
Evaluates test, then consequent or alternative.
special-formclojure.core
bindings => binding-form test If test is true, evaluates then with binding-form bound to the value of test, if not...
macroclojure.core
Evaluates test. If logical true, evaluates body in an implicit do.
macroclojure.core
bindings => binding-form test When test is true, evaluates body with binding-form bound to the value of test
macroclojure.core
Evaluates test. If logical false, evaluates body in an implicit do.
macroclojure.core
Constructs a data representation for a Throwable with keys: :cause - root cause message :phase - error phase ...
functionclojure.core
Catch clause inside try.
special-formclojure.core
Returns the cause of ex if ex is a Throwable. Otherwise returns nil.
functionclojure.core
Returns exception data (a map) if ex is an IExceptionInfo. Otherwise returns nil.
functionclojure.core
Create an instance of ExceptionInfo, a RuntimeException subclass that carries a map of additional data.
functionclojure.core
Returns the message attached to ex if ex is a Throwable. Otherwise returns nil.
functionclojure.core
Finally clause inside try, runs on exit.
special-formclojure.core
Throws an instance of Throwable.
special-formclojure.core
try / catch / finally exception handling.
special-formclojure.core
General
28Evaluates expression x and throws an AssertionError with optional message if x does not evaluate to logical true. A...
macroclojure.core
Ignores body, yields nil
macroclojure.core
Takes a body of expressions and yields a Delay object that will invoke the body only the first time it is forced (with...
macroclojure.core
returns true if x is a Delay created with delay
functionclojure.core
Also reader macro: @ref/@agent/@var/@atom/@delay/@future/@promise. Within a transaction, returns the in-transaction-va...
functionclojure.core
Evaluates expressions in order, returning the last.
special-formclojure.core
bindings => name n Repeatedly executes body (presumably for side-effects) with name bound to integers from 0 throug...
macroclojure.core
Evaluates x then calls all of the methods and functions with the value of x supplied at the front of the given argumen...
macroclojure.core
If x is already reduced?, returns it, else returns (reduced x)
functionclojure.core
Evaluates the form data structure (not text!) and returns the result.
functionclojure.core
If x is a Delay, returns the (possibly cached) value of its expression, else returns x
functionclojure.core
Returns a transducer that ends transduction when pred returns true for an input. When retf is supplied it must be a fn...
functionclojure.core
Evaluates test. If logical false, evaluates and returns then expr, otherwise else expr, if supplied, else nil.
macroclojure.core
bindings => binding-form test If test is not nil, evaluates then with binding-form bound to the value of test, if...
macroclojure.core
If an io! block occurs in a transaction, throws an IllegalStateException, else runs body in an implicit do. If the f...
macroclojure.core
Expands to code which yields a lazy sequence of the concatenation of the supplied colls. Each coll expr is not evalua...
macroclojure.core
fnspec ==> (fname [params*] exprs) or (fname ([params*] exprs)+) Takes a vector of function specs and a body, and gen...
macroclojure.core
Wraps x in a way such that a reduce will terminate with the value x
functionclojure.core
Returns true if x is the result of a call to reduced
functionclojure.core
Evaluates expr and prints the time it took. Returns the value of expr.
macroclojure.core
If x is reduced?, returns (deref x), else returns x
functionclojure.core
bindings => x xs Roughly the same as (when (seq xs) (let [x (first xs)] body)) but xs is evaluated only once
macroclojure.core
bindings => binding-form test When test is not nil, evaluates body with binding-form bound to the value of test
macroclojure.core
Evaluates body in a context in which *in* is bound to a fresh StringReader initialized with the string s.
macroclojure.core
- macro
clojure.core
Sets the precision and rounding mode to be used for BigDecimal operations. Usage: (with-precision 10 (/ 1M 3)) or: ...
macroclojure.core
binding => var-symbol temp-value-expr Temporarily redefines Vars while executing the body. The temp-value-exprs wi...
macroclojure.core
Temporarily redefines Vars during a call to func. Each val of binding-map will replace the root value of its key whic...
functionclojure.core
Repeatedly executes body (presumably for side-effects) with bindings and filtering as provided by "for". Does not ret...
macroclojure.core
List comprehension. Takes a vector of one or more binding-form/collection-expr pairs, each followed by zero or more ...
macroclojure.core
Evaluates the exprs in a lexical context in which the symbols in the binding-forms are bound to their respective init-...
macroclojure.core
Rebinds and transfers control to the recursion point.
special-formclojure.core
trampoline can be used to convert algorithms requiring mutual recursion without stack consumption. Calls f with suppli...
functionclojure.core
Repeatedly executes body while test expression is true. Presumes some side-effect will cause test to become false/nil....
macroclojure.core
- value
clojure.core.match
- value
clojure.core.match
- value
clojure.core.match
- value
clojure.core.match
Allow map matching syntax to check for IMatchLookup
valueclojure.core.match
Flag to optimize performance over code size.
valueclojure.core.match
In the presence of recur we cannot apply code size optimizations
valueclojure.core.match
- value
clojure.core.match
Enable syntax check of match macros
valueclojure.core.match
Default vector type. Can be rebound allowing emission of custom inline code for vector patterns, for exampl...
valueclojure.core.match
- value
clojure.core.match
Positional factory function for class clojure.core.match.AppPattern.
functionclojure.core.match
Positional factory function for class clojure.core.match.BindNode.
functionclojure.core.match
Positional factory function for class clojure.core.match.FailNode.
functionclojure.core.match
Positional factory function for class clojure.core.match.GuardPattern.
functionclojure.core.match
Positional factory function for class clojure.core.match.LeafNode.
functionclojure.core.match
Positional factory function for class clojure.core.match.LiteralPattern.
functionclojure.core.match
Positional factory function for class clojure.core.match.MapKeyPattern.
functionclojure.core.match
Positional factory function for class clojure.core.match.MapPattern.
functionclojure.core.match
Positional factory function for class clojure.core.match.OrPattern.
functionclojure.core.match
Positional factory function for class clojure.core.match.PatternMatrix.
functionclojure.core.match
Positional factory function for class clojure.core.match.PatternRow.
functionclojure.core.match
Positional factory function for class clojure.core.match.PredicatePattern.
functionclojure.core.match
Positional factory function for class clojure.core.match.RestPattern.
functionclojure.core.match
Positional factory function for class clojure.core.match.SeqPattern.
functionclojure.core.match
Positional factory function for class clojure.core.match.SwitchNode.
functionclojure.core.match
Positional factory function for class clojure.core.match.VectorPattern.
functionclojure.core.match
Positional factory function for class clojure.core.match.WildcardPattern.
functionclojure.core.match
- function
clojure.core.match
- function
clojure.core.match
- function
clojure.core.match
- function
clojure.core.match
- function
clojure.core.match
- function
clojure.core.match
- value
clojure.core.match
Pre-allocated exception used for backtracing
valueclojure.core.match
- function
clojure.core.match
- function
clojure.core.match
- function
clojure.core.match
- function
clojure.core.match
- function
clojure.core.match
- function
clojure.core.match
- function
clojure.core.match
- function
clojure.core.match
- function
clojure.core.match
- multimethod
clojure.core.match
- function
clojure.core.match
- function
clojure.core.match
- function
clojure.core.match
- function
clojure.core.match
- function
clojure.core.match
- function
clojure.core.match
- function
clojure.core.match
- multimethod
clojure.core.match
- function
clojure.core.match
- function
clojure.core.match
- function
clojure.core.match
- macro
clojure.core.match
- function
clojure.core.match
- function
clojure.core.match
Take the list of vars and sequence of unprocessed clauses and return the pattern matrix. The pattern matrix contains ...
functionclojure.core.match
Returns the corresponding pattern for the given syntax. Dispatches on the class of its argument. For example, `[(:or 1...
multimethodclojure.core.match
Handles patterns wrapped in the special list syntax. Dispatches on the first or second keyword in the list. For exampl...
multimethodclojure.core.match
- function
clojure.core.match
- function
clojure.core.match
- function
clojure.core.match
Case 1: If there are no pattern rows to match, then matching always fails
functionclojure.core.match
- function
clojure.core.match
- function
clojure.core.match
- function
clojure.core.match
- function
clojure.core.match
- function
clojure.core.match
- function
clojure.core.match
Case 3a: The first column is chosen. Compute and return a switch/bind node with a default matrix case
functionclojure.core.match
- function
clojure.core.match
Case 2: If the first row is empty then matching always succeeds and yields the first action.
functionclojure.core.match
Case 2: If the first row is constituted by wildcards then matching matching always succeeds and yields the first actio...
functionclojure.core.match
- function
clojure.core.match
- function
clojure.core.match
- function
clojure.core.match
- function
clojure.core.match
Returns a pattern with pattern-keywords (:when and :as) properly grouped. The original pattern may use the 'flatten...
functionclojure.core.match
- function
clojure.core.match
Determine if two patterns may be grouped together for simultaneous testing.
multimethodclojure.core.match
- function
clojure.core.match
- function
clojure.core.match
- function
clojure.core.match
- multimethod
clojure.core.match
- function
clojure.core.match
- function
clojure.core.match
- function
clojure.core.match
- function
clojure.core.match
Factory function for class clojure.core.match.BindNode, taking a map of keywords to field values.
functionclojure.core.match
Factory function for class clojure.core.match.FailNode, taking a map of keywords to field values.
functionclojure.core.match
Factory function for class clojure.core.match.LeafNode, taking a map of keywords to field values.
functionclojure.core.match
Factory function for class clojure.core.match.MapKeyPattern, taking a map of keywords to field values.
functionclojure.core.match
Factory function for class clojure.core.match.PatternMatrix, taking a map of keywords to field values.
functionclojure.core.match
Factory function for class clojure.core.match.RestPattern, taking a map of keywords to field values.
functionclojure.core.match
Factory function for class clojure.core.match.SwitchNode, taking a map of keywords to field values.
functionclojure.core.match
- function
clojure.core.match
- function
clojure.core.match
- function
clojure.core.match
- function
clojure.core.match
- function
clojure.core.match
- function
clojure.core.match
Pattern match a row of occurrences. Take a vector of occurrences, vars. Clause question-answer syntax is like `cond`. ...
macroclojure.core.match
- macro
clojure.core.match
Same as match but supports IMatchLookup when matching maps.
macroclojure.core.match
- macro
clojure.core.match
- function
clojure.core.match
- function
clojure.core.match
- function
clojure.core.match
- function
clojure.core.match
- multimethod
clojure.core.match
- multimethod
clojure.core.match
- multimethod
clojure.core.match
- function
clojure.core.match
- function
clojure.core.match
- function
clojure.core.match
Case 3b: A column other than the first is chosen. Swap column col with the first column and compile the result
functionclojure.core.match
- function
clojure.core.match
- function
clojure.core.match
- function
clojure.core.match
- function
clojure.core.match
- function
clojure.core.match
- function
clojure.core.match
- value
clojure.core.match
Process the vars for the pattern matrix. If user provides an expression, create a var and annotate via metadata with ...
functionclojure.core.match
- function
clojure.core.match
- function
clojure.core.match
- function
clojure.core.match
- function
clojure.core.match
- function
clojure.core.match
- function
clojure.core.match
- function
clojure.core.match
- function
clojure.core.match
- function
clojure.core.match
- function
clojure.core.match
- function
clojure.core.match
- function
clojure.core.match
- function
clojure.core.match
- function
clojure.core.match
- function
clojure.core.match
- function
clojure.core.match
- function
clojure.core.match
- function
clojure.core.match
- function
clojure.core.match
- function
clojure.core.match
- function
clojure.core.match
- function
clojure.core.match
- function
clojure.core.match
- function
clojure.core.match
- function
clojure.core.match
- function
clojure.core.match
- function
clojure.core.match
- function
clojure.core.match
- function
clojure.core.match
- function
clojure.core.match
- function
clojure.core.match
- function
clojure.core.match
- function
clojure.core.match
- function
clojure.core.match
- function
clojure.core.match
- multimethod
clojure.core.match
- function
clojure.core.match
- multimethod
clojure.core.match
- multimethod
clojure.core.match
- multimethod
clojure.core.match
- multimethod
clojure.core.match
Take an unprocessed pattern expression and an action expression and return a pattern row of the processed pattern exp...
functionclojure.core.match
Returns a Clojure form that, when executed, is truthy if the pattern matches the occurrence. Dispatches on the `type` ...
multimethodclojure.core.match
- function
clojure.core.match
- function
clojure.core.match
- function
clojure.core.match
- function
clojure.core.match
- function
clojure.core.match
- function
clojure.core.match
- function
clojure.core.match
- function
clojure.core.match
- function
clojure.core.match
- function
clojure.core.match
- function
clojure.core.match
- function
clojure.core.match
- function
clojure.core.match
- function
clojure.core.match
Returns a vector of two elements: the set of all wildcards and the set of duplicate wildcards. The underbar _ is ex...
functionclojure.core.match
- function
clojure.core.match
- function
clojure.core.match