ClojureDocs

导航

命名空间

partial

clojure.core

自 1.0 起可用 (源代码)
  • (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.