▲ | keyle 4 days ago | |||||||
C#, Swift, Dart, Rust... Python. Many languages take lambda/predicate/closure as filter/where. It generally unrolls as a `for loop` underneath, or in this case LINQ/SQL. C# was innovative for doing it first in the scope of SQL. I remember the arrival of LINQ... Good times. | ||||||||
▲ | 4 days ago | parent | next [-] | |||||||
[deleted] | ||||||||
▲ | sobani 4 days ago | parent | prev [-] | |||||||
How many of those languages can take an expression instead of a lambda? Func<..> is lambda that can only be invoked. Expression<Func..>> is an AST of a lambda that can be transformed by your code/library. | ||||||||
|