Top "Lambda" questions

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

Collectors.toMap() keyMapper -- more succinct expression?

I'm trying to come up with a more succinct expression for the "keyMapper" function parameter in the following Collectors.toMap() …

java collections lambda java-8 java-stream
How do you perform a left outer join using linq extension methods

Assuming I have a left outer join as such: from f in Foo join b in Bar on f.Foo_…

c# linq-to-sql lambda
Proper usage of Optional.ifPresent()

I am trying to understand the ifPresent() method of the Optional API in Java 8. I have simple logic: Optional<…

java lambda java-8 optional
No Multiline Lambda in Python: Why not?

I've heard it said that multiline lambdas can't be added in Python because they would clash syntactically with the other …

python syntax lambda
Variable used in lambda expression should be final or effectively final

Variable used in lambda expression should be final or effectively final When I try to use calTz it is showing …

java lambda
Java 8 Streams: multiple filters vs. complex condition

Sometimes you want to filter a Stream with more than one condition: myList.stream().filter(x -> x.size() &…

java lambda filter java-8 java-stream
Change some value inside the List<T>

I have some list (where T is a custom class, and class has some properties). I would like to know …

c# linq lambda expression
Lambda expression to convert array/List of String to array/List of Integers

Since Java 8 comes with powerful lambda expressions, I would like to write a function to convert a List/array of …

java arrays collections lambda java-8
Java "lambda expressions not supported at this language level"

I was testing out some new features of Java 8 and copied the example into my IDE (Eclipse originally, then IntelliJ) …

java intellij-idea lambda java-8
Multiple Order By with LINQ

I start with a basic class that I want to manipulate in a List using LINQ, something like the following: …

c# linq lambda