Thursday 27 August 2015

Beauty of Higher Order Functions

Beauty of Higher Order Functions::

If you are familiar with JavaScript you must have come across the usage of Higher Order Functions. Simply put higher order functions can accept functions as parameters or can return function as a result. When you understand the basics, it's joy to work with them.

Due to the elegant design of PRPC runtime, we can easily simulate higher order functions using activities. Following activity is a good example of such a scenario.

Code-Pega-List.ProcessSelection
So next time when you find a problem see if you can solve it using higher order functions. If properly used your code will be more modular and look very professional.

1 comment: