WordGarden.io
Back to search

lambda

C2
noun

Pronunciation

UK

  • /lˈæmbdə/

US

  • /ˈlæmdə/

Description

Lambda (λ) is a bit of a chameleon. First, it is the eleventh letter of the Greek alphabet. In math and physics, it often stands for things like wavelength or a decay rate. In programming, it usually means an anonymous function or lambda expression - a small piece of code you write without giving it a name. It is handy when you need a quick rule or calculation for one small job. You might see it in Python, Lisp, Haskell, Java, or JavaScript.

Think of it like this: if regular functions are named recipes, lambdas are like quick notes for a single dish - useful right then and there, without making a whole new recipe card.

Examples

  1. 1

    Greek letter

    In the diagram, lambda is written as λ next to the wave.

  2. 2

    Physics equation

    The equation uses lambda to represent the wavelength of the light.

  3. 3

    Python function

    In Python, I used a lambda to sort the list by each person's age.

    • Domain

      In Python, a lambda is a small function written without giving it a name.

  4. 4

    Code readability

    The team rewrote the lambda as a regular function so the code was easier to read.

  5. 5

    Cloud service

    We moved the image-processing job to AWS Lambda so it runs only when someone uploads a file.

    • Domain

      AWS Lambda

      a cloud service that runs code when needed

Forms and spellings

2 forms open this card.

Main spelling

  • lambdanoun

Forms

  • lambdaspluralnoun