1

From a tutorial:

With the lambda keyword, small anonymous functions can be created. ... They are syntactically restricted to a single expression.

Why on Earth does this limitation exist?

martineau
  • 112,593
  • 23
  • 157
  • 280
Vorac
  • 8,164
  • 10
  • 52
  • 97
  • Why don't we just use `lambda` in place of regular functions for everything then so we don't have to type a `return`? That's starting to sound like perl to me. (Keep in mind Guido hates `lambda`s and almost had them removed) – jamylak May 23 '13 at 10:26

0 Answers0