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

    What is a lambda expression in C++11? When would I use one? What class of problem do they solve that wasn't possible prior to their introduction? A few examples, and use cases would be …

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

    Mar 8, 2011 · Lambda is an anonymous function in Python programming language, instead of bearing a def statement in the front it is simply called and written lambda. def mult2(x):

  3. How do add python libraries to AWS Lambda? - Stack Overflow

    Feb 7, 2023 · To use any 3rd party library in lambda you can use a lambda layer. install the dependency using following command pip3 install <your_package> -t . zip the package zip -r …

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

    Invalid comparison. First, you are not passing a lambda function to the filter version, which makes it default to the identity function. When defining if not None in the list comprehension you are …

  5. How do I define a method which takes a lambda as a parameter in …

    Nov 28, 2012 · In Java 8, methods can be created as Lambda expressions and can be passed by reference (with a little work under the hood). There are plenty of examples online with lambdas …

  6. python - Syntax behind sorted (key=lambda: ...) - Stack Overflow

    I don't quite understand the syntax behind the sorted() argument: key=lambda variable: variable[0] Isn't lambda arbitrary? Why is variable stated twice in what looks like a dict?

  7. Can I limit concurrent invocations of an AWS Lambda?

    To limit the number of concurrent invocations of an AWS Lambda function, you can use the maximum concurrency feature for Lambda event source mappings. This is an attribute of the …

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

    In LISP, a lambda is just an anonymous function. In Python, a lambda is an anonymous function specifically limited to a single expression; anything more, and you need a named function. …

  9. How to kill/terminate a running AWS Lambda function?

    Mar 25, 2019 · I have a lambda function that runs over a period of ~10mins. Decently long for a Lambda but given our current needs/setup it's the simplest way for it to do what we need it to …

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

    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 …