Skip to main content

Creating

7
  • comp

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

  • constantly

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

  • 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

  • fn

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

  • identity

    Returns its argument.

  • partial

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