2009-06-21 | Paul Boddie | file changeset files shortlog | Changed the list representation to use an interchangeable "fragment" object which holds the contents of each list. Added a MakeFragment instruction and RSVP support for some list methods. Added built-in implementations of len and range. Added more test script and RSVP options. Improved test coverage. |
paul@91 | 1 | #!/usr/bin/env python |
paul@91 | 2 | |
paul@91 | 3 | a = 1 |
paul@246 | 4 | b = 20 |
paul@246 | 5 | l = range(a, b) |
paul@246 | 6 | |
paul@246 | 7 | result1_19 = len(l) |
paul@246 | 8 | result_1 = l[0] |
paul@246 | 9 | result2_19 = l[-1] |
paul@91 | 10 | |
paul@91 | 11 | # vim: tabstop=4 expandtab shiftwidth=4 |