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

    Aug 19, 2008 · A Lambda Function, or a Small Anonymous Function, is a self-contained block of functionality that can be passed around and used in your code. Lambda has different names in different programming languages – Lambda in Python and Kotlin, Closure in Swift, or Block in C and Objective-C.

  2. 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 being created and used w...

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

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

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

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

  8. How to increase the maximum size of the AWS lambda …

    Feb 11, 2019 · You cannot increase the deployment package size for Lambda. AWS Lambda limits are described in AWS Lambda developer guide. More information on how those limits work can be seen here. In essence, your unzipped package size has to be less than 250MB (262144000 bytes). PS: Using layers doesn't solve sizing problem, though helps with …

  9. 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 event source mapping, which polls messages from Amazon SQS and pushes them to …

  10. Capturing a reference by reference in a C++11 lambda

    Per [expr.prim.lambda]/17, only id-expression s referring to entities captured by copy are transformed into a member access on the lambda closure type; id-expression s referring to entities captured by reference are left alone, and still denote the same entity they would have denoted in the enclosing scope.