Calmcode - lambda: introduction

Introduction

1 2 3 4 5

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.

You have the standard python functions, like this one;

def double(x):
    return x * 2

double(3)

But you can also get these functions in a slightly different form.

triple = lambda x: x * 3
triple(3)

Both of these are functions, but the latter one can be used differently. We'll explore this in these series of videos