ClojureDocs

Nav

Namespaces

partial

clojure.core

Available since 1.0 (source)
  • (partial f)
  • (partial f arg1)
  • (partial f arg1 arg2)
  • (partial f arg1 arg2 arg3)
  • (partial f arg1 arg2 arg3 & more)
Takes a function f and fewer than the normal arguments to f, and
returns a fn that takes a variable number of additional args. When
called, the returned function calls f with args + additional args.