Skip to main content

General

23
  • assert

    Evaluates expr and throws an exception if it does not evaluate to logical true.

  • comment

    Ignores body, yields nil

  • delay

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

  • delay?

    returns true if x is a Delay created with delay

  • deref

    Also reader macro: @var/@atom/@delay. Returns the most-recently-committed value of ref. When applied to a var or atom, r...

  • do

    Evaluates the expressions in order and returns the value of the last. If no expressions are supplied, returns nil.

  • dotimes

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

  • doto

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

  • ensure-reduced

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

  • eval

    Evaluates the form data structure (not text!) and returns the result. Delegates to cljs.core/*eval*. Intended for use in...

  • force

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

  • halt-when

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

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

  • lazy-cat

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

  • letfn

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

  • 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

  • time

    Evaluates expr and prints the time it took. Returns the value of expr.

  • unreduced

    If x is reduced?, returns (deref x), else returns x

  • when-first

    bindings => x xs Roughly the same as (when (seq xs) (let [x (first xs)] body)) but xs is evaluated only once

  • when-some

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

  • with-redefs

    binding => var-symbol temp-value-expr Temporarily redefines vars while executing the body. The temp-value-exprs will b...