Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Conversations with a six-year-old on functional programming. Parent comment
I'd read it as "Lambda x maps to x - 3."
In Python, you can rewrite lambdas as regular functions if you want.
lambda x : x - 3
def f(x): return x - 3
>>> f = lambda x : x - 3 >>> def g(x): ... return x - 3 ... >>> f(0) -3 >>> g(0) -3 >>> (lambda x : x - 3)(0) -3
There are no comments on this comment yet.
I'd read it as "Lambda x maps to x - 3."
In Python, you can rewrite lambdas as regular functions if you want.
is the same as This runs in the IDLE as such: