2955 shaares
21 private links
21 private links
2 results
tagged
bestpractice
In functional-style programming, functions may both receive and return other functions. Instead of a function being simply a factory or producer of an object, as in traditional object-oriented programming, it is also able to create and return another function. Functions returning functions can result in cascading lambdas, especially in highly concise code. While this syntax may look quite strange at first, it has its uses. This article will help you recognize cascading lambdas and understand their nature and purpose in code.