About 54 results
Open links in new tab
  1. language agnostic - What is a lambda (function)? - Stack Overflow

    Aug 19, 2008 · It refers to lambda calculus, which is a formal system that just has lambda expressions, which represent a function that takes a function for its sole argument and returns a function.

  2. 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 …

  3. language agnostic - What is a Lambda? - Stack Overflow

    Sep 29, 2008 · "Lambda" refers to the or to a specific lambda expression. Lambda calculus is basically a branch of logic and mathematics that deals with functions, and is the basis of .

  4. 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 …

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

    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 expression or …

  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. python - List comprehension vs. lambda + filter - Stack Overflow

    The other overhead that might apply is that the lambda is being forced to access a scoped variable (value). That is slower than accessing a local variable and in Python 2.x the list comprehension only …

  8. 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.

  9. Is there a way to perform "if" in python's lambda? [duplicate]

    An easy way to perform an if in lambda is by using list comprehension. You can't raise an exception in lambda, but this is a way in Python 3.x to do something close to your example:

  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...