Top "Lambda" questions

DO NOT USE FOR THE AWS SERVICE (use [aws-lambda] for those questions!

Cannot convert lambda expression to type 'object' because it is not a delegate type

I have a base class that has a bool property which looks like this: public abstract class MyBaseClass { public bool …

c# linq lambda delegates
How to get a range of items from stream using Java 8 lambda?

In a previous question [ How to dynamically do filtering in Java 8? ] Stuart Marks gave a wonderful answer, and provided several …

java filter lambda java-8
Java 8: Where is TriFunction (and kin) in java.util.function? Or what is the alternative?

I see java.util.function.BiFunction, so I can do this: BiFunction<Integer, Integer, Integer> f = (x, y) …

java lambda java-8
Simple Examples of joining 2 and 3 table using lambda expression

Can anyone show me two simple examples of joining 2 and 3 tables using LAMBDA EXPRESSION( for example using Northwind tables (Orders,…

linq linq-to-sql c#-4.0 lambda c#-3.0
c++0x: proper way to receive a lambda as parameter by reference

What is the right way to define a function that receives a int->int lambda parameter by reference? void …

c++ lambda c++11 function-prototypes function-parameter
When to use lambda, when to use Proc.new?

In Ruby 1.8, there are subtle differences between proc/lambda on the one hand, and Proc.new on the other. What …

ruby lambda proc
Recursive lambda functions in C++11

I am new to C++11. I am writing the following recursive lambda function, but it doesn't compile. sum.cpp #include &…

c++ c++11 lambda
Why doesn't print work in a lambda?

Why doesn't this work? lambda: print "x" Is this not a single statement, or is it something else? The documentation …

python printing lambda python-2.x
Using Include in Entity Framework 4 with lambda expressions

I've seen many articles about how to overcome this matter, all related to CTP4, Or adding my own extension methods. …

c# entity-framework-4 lambda
Lambdas: local variables need final, instance variables don't

In a lambda, local variables need to be final, but instance variables don't. Why so?

java lambda java-8 final