Skip to content

clojure.core/partial

View this page on ClojureDocs

Type: function Added: Clojure 1.0 Examples: 15 Runnable: 10
([f] [f arg1] [f arg1 arg2] [f arg1 arg2 arg3] [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.

Examples

by nipra on . May have evaluation errors.
by nipra on . May have evaluation errors.
by philos99 on
by mihirmp on
by ftravers on
by liango2 on . May have evaluation errors.
by gosukiwi on . May have evaluation errors.
by Lacty on
by codxse on
by abhilater on
by ibercode on
by ibercode on
by Hindol on
by sulami on . May have evaluation errors.
by jvw-git on

Note by roryokane

This function implements the concept of “currying�.

See also


Content from the matching ClojureDocs page, with authors credited on each contribution.