Skip to main content
Currying

Also known as

  • Partial Function Application

Intent

Currying decomposes a function that takes multiple arguments into a sequence of functions that each take a single argument. It helps in creating a higher-order function by partial application of its arguments.


iluwatarAbout 4 minFunctionalFunctional decomposition
Execute Around

Also known as

  • Around Method Pattern
  • Resource Block Management

Intent

Execute Around idiom frees the user from certain actions that should always be executed before and after the business method. A good example of this is resource allocation and deallocation leaving the user to specify only what to do with the resource.


iluwatarAbout 2 minBehavioralClosureCode simplificationEncapsulationFunctional decompositionResource management