Do you want BuboFlash to help you learning these things? Or do you want to add or correct something? Click here to log in or create user.

Tags

#python #sicp

Question

How would you translate the following lambda expression into plain english?

lambda x : f(g(x))

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))

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))

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.

>>> 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.

status | not learned | measured difficulty | 37% [default] | last interval [days] | |||
---|---|---|---|---|---|---|---|

repetition number in this series | 0 | memorised on | scheduled repetition | ||||

scheduled repetition interval | last repetition or drill |

Do you want to join discussion? Click here to log in or create user.