Skip to main content

Higher-Order

10
  • apply

    Applies fn f to the argument list formed by prepending intervening arguments to args.

  • comp

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

  • complement

    Takes a fn f and returns a fn that takes the same arguments as f, has the same effects, if any, and returns the opposi...

  • completing

    Takes a reducing function f of 2 args and returns a fn suitable for transduce by adding an arity-1 signature that call...

  • every-pred

    Takes a set of predicates and returns a function f that returns true if all of its composing predicates return a logic...

  • fnil

    Takes a function f, and returns a function that calls f, replacing a nil first argument to f with the supplied value x...

  • juxt

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

  • memoize

    Returns a memoized version of a referentially transparent function. The memoized version of the function keeps a cache...

  • some-fn

    Takes a set of predicates and returns a function f that returns the first logical true value returned by one of its co...

  • trampoline

    trampoline can be used to convert algorithms requiring mutual recursion without stack consumption. Calls f with suppli...