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.

Comments

Popular posts from this blog

Creating custom rules in PRPC

Creating custom rules in PRPC – Introduction

CSSA PDN Links Compilation