Top "Lambda" questions

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

Retrieving a List from a java.util.stream.Stream in Java 8

I was playing around with Java 8 lambdas to easily filter collections. But I did not find a concise way to …

collections lambda java-8 java-stream
Java 8 Lambda function that throws exception?

I know how to create a reference to a method that has a String parameter and returns an int, it's: …

java lambda java-8
OrderBy descending in Lambda expression?

I know in normal Linq grammar, orderby xxx descending is very easy, but how do I do this in Lambda …

linq lambda
Break or return from Java 8 stream forEach?

When using external iteration over an Iterable we use break or return from enhanced for-each loop as: for (SomeObject obj : …

java foreach lambda java-8
What is a lambda (function)?

For a person without a comp-sci background, what is a lambda in the world of Computer Science?

lambda language-agnostic computer-science terminology theory
How to use a Java8 lambda to sort a stream in reverse order?

I'm using java lambda to sort a list. how can I sort it in a reverse way? I saw this …

java lambda java-8 java-stream
Getting all types that implement an interface

Using reflection, how can I get all types that implement an interface with C# 3.0/.NET 3.5 with the least code, and …

c# optimization reflection lambda c#-3.0
python max function using 'key' and lambda expression

I come from OOP background and trying to learn python. I am using the max function which uses a lambda …

python function lambda
LINQ: "contains" and a Lambda query

I have a List<BuildingStatus> called buildingStatus. I'd like to check whether it contains a status whose char …

c# .net list linq lambda
convert a list of objects from one type to another using lambda expression

I have a foreach loop reading a list of objects of one type and producing a list of objects of …

c# generics lambda