why Linq developers has used func<> in places where Predicate was suffice.
for example the where extension method actually takes a func with bool as output
means it takes func but they have given it a name of predicate.
when they could directly take predicate like they have used in Find extension method , why not in where method?
C#
match);">- Find (Predicate
match);


Rajanikant HawaldarRank #110 · 20.3K reputationPosted Dec 3, 2020, 5:35 AM EST
Sachin SinghRank #66 · 26.2K reputationPosted Dec 3, 2020, 5:39 AM EST