About 57 results
Open links in new tab
  1. What is a lambda expression, and when should I use one?

    Here is another really good reference which explains very well what are lambda expressions in C++: Microsoft.com: Lambda expressions in C++. I especially like how well it explains the parts of a …

  2. language agnostic - What is a lambda (function)? - Stack Overflow

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

  3. C# Lambda ( => ) - Stack Overflow

    Apr 7, 2017 · All lambda expressions use the lambda operator =>, which is read as "goes to". The left side of the lambda operator specifies the input parameters (if any) and the right side holds the …

  4. LAMBDA functions - techcommunity.microsoft.com

    Aug 24, 2024 · We're excited to announce the release of seven new LAMBDA functions, as well as other improvements to this powerful functionality.

  5. python - List comprehension vs. lambda + filter - Stack Overflow

    by_attribute = lambda x: x.attribute == value xs = filter(by_attribute , xs) Yes, that's two lines of code instead of one, but you clean filter expression from cumbersome lambda and by naming lambda …

  6. What exactly is "lambda" in Python? - Stack Overflow

    Mar 8, 2011 · The lambda construct is a shorter way to define a simple function that calculates a single expression. The def statement can be inconvenient and make the code longer, broken up and harder …

  7. What is `lambda` in Python code? How does it work with `key` …

    I saw some examples using built-in functions like sorted, sum etc. that use key=lambda. What does lambda mean here? How does it work? For the general computer science concept of a lambda, see …

  8. python - How are lambdas useful? - Stack Overflow

    Lambda expressions are becoming popular in other languages (like C#) as well. They're not going anywhere. Reading up on closures would be a useful exercise to understand Lambdas. Closures …

  9. python - Lambda inside lambda - Stack Overflow

    May 31, 2013 · 1 (lambda x: x%2) is a function, and dividing a function by 2 doesn't make any sense. You probably want to call it and divide what the value it returned.

  10. Understanding lambda in Python and using it to pass multiple arguments

    After reading everything I can find on lambda expressions in Python, I still don't understand how to make it do what I want. Everyone uses the example: lambda x, y : x + y Why do you need to stat...