<div dir="ltr"><br><div>We know the Great Lambda languages like</div><div>LISP and Scheme have lambdas that might</div><div>go on for pages, whereas Python has a "little</div><div>lambda": one expression only.</div><div><br></div><div>That expression may be another lambda </div><div>however, and perhaps worth doing, to get</div><div>the concept of composing functions across,</div><div>we might in math class go:</div><div><br></div><div><div>compose = lambda f, g: lambda x: f(g(x))</div><div><br></div><div># Example functions</div><div><br></div><div>def addA(s): return s + "A"</div><div><br></div><div>def addB(s): return s + "B"</div><div><br></div><div># Composing them</div><div>addAB = compose(addB, addA)</div><div><br></div><div># Test</div><div>print(addAB("L"))</div></div><div><br></div><div>Getting LAB for output i.e addB(addA("L"))</div><div><br></div><div>Over on math-teach I've been branding </div><div>our traditional differential / integral calculus</div><div>the "Delta Calc" track to pave the way for </div><div>an additional "Lambda Calc" track through </div><div>much of the same territory.</div><div><br></div><div>Lambda Calc is our door into Gnu Math </div><div>more generally, a complementary CS-friendly </div><div>approach to many of the same high school</div><div>math concepts. but also new ones not </div><div>hitherto so commonly seen.</div><div><br></div><div>We'll do more with RSA and Fractals than</div><div>in the previously status quo standards,</div><div>and with spatial / spherical geometry per</div><div>Popko. [1]  Lets get those Tractors on the</div><div>ball (Spaceship Earth).</div><div><br></div><div>The "everything is an object" heuristic in</div><div>Python makes it natural to think of functions</div><div>as arguments as well as results of other </div><div>functions.</div><div><br></div><div>Kirby</div><div><br></div><div>[1]  <a href="http://www.dividedspheres.com/">http://www.dividedspheres.com/</a></div><div><br></div></div>