Home Browser Contributors

lambda

Lambda is a way of cleaning up code and removing the use of functions that would otherwise only be used once. With lambda the paramaters of the function come before the : and what the function returns comes after.

Defining Lambda

``` py c = lambda a, b : a + x ```

Calling Lambda Functions

``` py # output: 3 print(c(1,2)) ```