Hi,
I have discussed about the lambda expression in my previous posts. In this post I will talk about predicate and projection. Predicate and projection are type of Lambda.
Some of the Lambda expression have particular name, which is based on their purpose. Predicate and projection are two type of Lambda expression, which have their name, based on the purpose.
Predicate – A Boolean expression that is intended to indicate membership of an element in a group is called predicate. Below is an example of the Lambda expression, which is predicate.
( Count ) => count > 1000
Here this lambda expression is returning a Boolean expression and is intended to indicate the membership existence. Hence it is a predicate.