Top "Lambda" questions

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

Java 8, Streams to find the duplicate elements

I am trying to list out duplicate elements in the integer list say for eg, List<Integer> numbers = …

java lambda java-8 java-stream
Java 8 lambda get and remove element from list

Given a list of elements, I want to get the element with a given property and remove it from the …

java lambda java-8 java-stream
How do I use the new computeIfAbsent function?

I very much want to use Map.computeIfAbsent but it has been too long since lambdas in undergrad. Almost directly …

java dictionary lambda java-8
Where do I mark a lambda expression async?

I've got this code: private async void ContextMenuForGroupRightTapped(object sender, RightTappedRoutedEventArgs args) { CheckBox ckbx = null; if (sender is CheckBox) { ckbx = …

c# lambda resharper windows-store-apps async-await
Java 8: Lambda-Streams, Filter by Method with Exception

I have a problem trying out the Lambda expressions of Java 8. Usually it works fine, but now I have methods …

java exception-handling lambda java-8
What is the difference between a 'closure' and a 'lambda'?

Could someone explain? I understand the basic concepts behind them but I often see them used interchangeably and I get …

function lambda functional-programming closures
How to check if element exists using a lambda expression?

Specifically, I have TabPane, and I would like to know if there is element with specific ID in it. So, …

java java-8 lambda
Task.Run with Parameter(s)?

I'm working on a multi-tasking network project and I'm new on Threading.Tasks. I implemented a simple Task.Factory.StartNew() …

c# lambda task-parallel-library task
Return from lambda forEach() in java

I am trying to change some for-each loops to lambda forEach()-methods to discover the possibilities of lambda expressions. The …

java foreach lambda java-8 return-type
Cannot convert lambda expression to type 'string' because it is not a delegate type

I am using a LINQ lambda expression like so: int Value = 1; qryContent objContentLine; using (Entities db = new Entities()) { objContentLine = (from …

c# asp.net linq lambda