I think I must be missing something; this seems so right, but I can\'t see a way to do this.
Say you have a pure function in Python: