Files
exercises-in-programming-style/05-shoot-your-teammate-forward/README.md
Crista Lopes 3d9c89ad57 Added style #5
2013-09-22 10:09:17 -07:00

569 B

Style #5

Variation of style #4, with the following additional constraints:

  • Each function takes an additional parameter, usually the last, which is another function
  • That function parameter is applied at the end of the current function
  • That function parameter is given as input what would be the output of the current function
  • Larger problem is solved as a pipeline of functions, but where the next function to be applied is given as parameter to the current function

Possible names:

  • Continuation-passing style
  • Crochet loop