... lambda.

Lambda functions are just functions but typically very simple ones. It's the fact that makes them really easy to declare that makes them extremely expressive as well and in this series of videos we'd like to demonstrate not just how they work but also why they're nice to reason about.


Consider the flexibility of this code;

number = 1
for func in [lambda x: x - 1, lambda x: x * 2, lambda x: x + 2]:
    number = func(number)

No need to declare functions with a name here!

Feedback? See an issue? Something unclear? Feel free to mention it here.

If you want to be kept up to date, consider getting the newsletter.