#python #sicp
compound lambda expressions are
notoriously illegible, despite their brevity.
If you want to change selection, open document below and click on "Move attachment"
1.6 Higher-Order Functionscompose1(f, g) [parent=Global] func λ(x) [parent=Global] func λ(y) [parent=Global] func λ(x) [parent=f1]
Some programmers find that using unnamed functions from lambda expressions
to be shorter and more direct. However, <span>compound lambda expressions are
notoriously illegible, despite their brevity. The following definition is
correct, but many programmers have trouble understanding it quickly.
>>> compose1 = lambda f,g: lambda x: f(g(x))
In general, Python style pr Summary
status | not read | | reprioritisations | |
---|
last reprioritisation on | | | suggested re-reading day | |
---|
started reading on | | | finished reading on | |
---|
Details