One of my favorite features of functional programming languages is that you can treat functions like values. You can assign them like any other value, but most interestingly you can apply them! Though Python requires that you use a special notation to do so, I wanted to write this down so that it is clear how to apply functions in Python.
def f(app, args): return apply(app, args) print f(lambda a, b: a + b, [1, 99])
Notice that one must use the apply function and that the arguments passed to it must be a sequence. The code is simple, and this may be a trivial example, but the concept is still apparent.
