How would you translate the following lambda expression into plain english?
lambda x : f(g(x))
Answer
"A function that takes x and returns f(g(x))"
Tags
#python #sicp
Question
How would you translate the following lambda expression into plain english?
lambda x : f(g(x))
Answer
?
Tags
#python #sicp
Question
How would you translate the following lambda expression into plain english?
lambda x : f(g(x))
Answer
"A function that takes x and returns f(g(x))"
If you want to change selection, open original toplevel document below and click on "Move attachment"
Parent (intermediate) annotation
Open it >>> def compose1 ( f , g ): return lambda x : f ( g ( x )) We can understand the structure of a lambda expression by constructing a
corresponding English sentence:
lambda x : f(g(x))
"A function that takes x and returns f(g(x))"
The result of a lambda expression is called a lambda function. It has no
intrinsic name (and so Python prints for the name), but otherwise
it behaves like any other function.