encyclopegia.org

Partial application

In computer science, partial application (or partial function application) refers to the process of fixing a number of arguments of a function, producing another function of smaller arity. Given a function f \colon (X \times Y \times Z) \to N , we might fix (or 'bind') the first argument, producing a function of type \text{partial}(f) \colon (Y \times Z) \to N . Evaluation of this function might be represented as f_\text{partial}(2, 3) . Note that the result of partial function application in this case is a function that takes two arguments. Partial application is sometimes incorrectly called currying, which is a related, but distinct concept.

In computer science, partial application (or partial function application) refers to the process of fixing a number of arguments of a function, producing another function of smaller arity. Given a function f \colon (X \times Y \times Z) \to N , we might fix (or 'bind') the first argument, producing a function of type \text{partial}(f) \colon (Y \times Z) \to N . Evaluation of this function might be represented as f_\text{partial}(2, 3) . Note that the result of partial function application in this case is a function that takes two arguments. Partial application is sometimes incorrectly called currying, which is a related, but distinct concept. Intuitively, partial function application says "if you fix the first arguments of the function, you get a function of the remaining arguments". For example, if function div(x,y) = x/y, then div with the parameter x fixed at 1 is another function: div 1 (y) = div(1,y) = 1/y. This is the same as the function inv that returns the multiplicative inverse of its argument, defined by inv(y) = 1/y. The practical motivation for partial application is that very often the functions obtained by supplying some but not all of the arguments to a function are useful; for example, many languages have a function or operator similar to plus_one . Partial application makes it easy to define these functions, for example by creating a function that represents the addition operator with 1 bound as its first argument. int f(int a, int b); auto f_partial = [](int a) { return f(a, 123); }; assert(f_partial(456) == f(456, 123) ); In Java, MethodHandle.bindTo partially applies a function to its first argument. Alternatively, since Java 8, lambdas can be used: public static Function partialApply(BiFunction biFunc, A value) { return b -> biFunc.apply(value, b); } In Raku, the assuming method creates a new function with fewer parameters. The Python standard library module functools includes the partial function, allowing positional and named argument bindings, returning a new function. In XQuery, an argument placeholder ( ? ) is used for each non-fixed argument in a partial function application. papply : (((a × b) → c) × a) → (b → c) = λ(f, x). λy. f (x, y) curry : ((a × b) → c) → (a → (b → c)) = λf. λx. λy. f (x, y) uncurry : (a → (b → c)) → ((a × b) → c) = λf. λ(x, y). f x y Note that curry papply = curry . The partial application of the cross product \times on \mathbb{R}^3 is \times(\, \cdot \, , -): \mathbb{R}^3 \mapsto \text{End}(\mathbb{R}^3) . The image of the vector \mathbf{u} is a linear map T_\mathbf{u} such that T_\mathbf{u}(\mathbf{v}) = \mathbf{u}\times\mathbf{v} . The components of T_\mathbf{u} can be found to be (T_\mathbf{u})_{ij} = \epsilon_{ijk}u_k . This is closely related to the adjoint map for Lie algebras. Lie algebras are equipped with a bracket [\, \cdot \, , \, \cdot \,]:\mathfrak{g}\times\mathfrak{g}\rightarrow \mathfrak{g} . The partial application gives a map \text{ad}:\mathfrak{g}\rightarrow \text{End}(\mathfrak{g}) . The axioms for the bracket ensure this map is a homomorphism of Lie algebras.

References

No reference rows published for this article.

Cite this article

MLA

"Partial application." encyclopegia.org, 2026, https://encyclopegia.org/wiki/partial-application. Accessed 24 November 2026.

Chicago

"Partial application." encyclopegia.org. Accessed November 24, 2026. https://encyclopegia.org/wiki/partial-application.

APA

encyclopegia.org. (2026). Partial application. Retrieved November 24, 2026, from https://encyclopegia.org/wiki/partial-application

Accessed November 24, 2026 · CC BY-SA 4.0 · citation page · JSON

Related articles

R. Seth Williams

enwiki · references available

Pendé River

enwiki · references available

Bahr Aouk River

enwiki · references available

1890 Michigan Wolverines football team

enwiki · references available

Three Rivers Rambler

enwiki · references available

Chinese Taipei national ice hockey team

enwiki · references available

CCGS Cape Cockburn

enwiki · references available

Lady by Choice

enwiki · references available
CC BY-SA 4.0 · share-alike · https://en.wikipedia.org/w/index.php?oldid=1338438031 · 0.5 · snapshot enwiki-001338438031

Cite · JSON · Search

Related services and records

Services

  • Estate — measured countries, lanes and facts
  • Intel — live corroborated events
  • Legal — statutes, cases and citations
  • Encyclopedia — articles with inline sources
  • Space — launches, satellites and orbits
  • Search — federated search and reports
  • Pass — passport account and SSO
  • Corpora — read-only corpus origins
  • e01 — self-hosted corpora and tools

Text and metadata only; each target carries its own sources. Missing data is published as no-data, never estimated.