ClojureDocs

Nav

Namespaces

core.async
core.logic
data.csv
spec.alpha
tools.build
  • clojure
tools.deps

comp

clojure.core

Available since 1.0 (source) Clojure/JVMClojureScriptbabashka
  • (comp)
  • (comp f)
  • (comp f g)
  • (comp f g & fs)
Takes a set of functions and returns a fn that is the composition
of those fns.  The returned fn takes a variable number of args,
applies the rightmost of fns to the args, the next
fn (right-to-left) to the result, etc.