2011-07-02 | Paul Boddie | file changeset files shortlog | Moved some code generation methods into a new Assembler class. Separated sequence element storage into a separate method which may form the basis of a native library routine. |
paul@85 | 1 | #!/usr/bin/env python |
paul@85 | 2 | |
paul@109 | 3 | def f(c): |
paul@108 | 4 | return lambda a, b=c: a + b |
paul@108 | 5 | |
paul@108 | 6 | def g(f, x): |
paul@108 | 7 | return f(x) |
paul@108 | 8 | |
paul@233 | 9 | result_4 = g(f(3), 1) |
paul@85 | 10 | |
paul@85 | 11 | # vim: tabstop=4 expandtab shiftwidth=4 |