Main Content

Lambdas in Python

Archive - Originally posted on "The Horse's Mouth" - 2005-05-06 07:19:56 - Graham Ellis

In Lambda Calculus, lambda abstractions (functions) are defined as functions that relate one variable to another. So in Python, a Lambda is a single or inline definition of the functionllity of a transformation of one (or more) objects into another (one or more) objects.

On our main website, you'll find both an example of the use of a Lambda function in use and an example showing how the same is achieved without a lambda