2018-07-11 | Paul Boddie | file changeset files shortlog | Simplified various operations in the generator and optimiser, relying on more general mappings for attribute names instead of those providing them in order, employing references for the optimiser's all_attrs mapping keys instead of tuples. |
paul@2 | 1 | def f(l, y): |
paul@2 | 2 | return [x for x in l if x > y] |
paul@2 | 3 | |
paul@2 | 4 | result = f([1, 2, 3], 2) |