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 number...

  • constantly

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

  • defn

    Same as (def name (core/fn [params* ] exprs*)) or (def name (core/fn ([params* ] exprs*)+)) with any doc-string or attr...

  • defn-

    same as defn, yielding non-public def

  • fn

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

  • 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 additional...