About 55 results
Open links in new tab
  1. 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?

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

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

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

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

    In Python 2.6, I want to do: f = lambda x: if x==2 print x else raise Exception() f(2) #should print "2" f(3) #should throw an exception This clearly isn't the syntax. Is it possible to perform an if in …

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

    Feb 7, 2023 · 3 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 …

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

  8. Is there any difference betwen [=] and [&] in lambda functions?

    Jan 14, 2014 · I was studying lambda function in c++11 recently. But I don't know if there is any difference between [=] and [&amp;]. If there is, what the difference is? And in these two …

  9. What is the difference between a 'closure' and a 'lambda'?

    The closure of a lambda expression is this particular set of symbols defined in the outer context (environment) that give values to the free symbols in this expression, making them non-free …

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