2016-11-22 | Paul Boddie | file changeset files shortlog | Introduced specific instance size constants for functions employing defaults. Removed superfluous structure size parameters from various method signatures. |
paul@2 | 1 | a = 4 |
paul@2 | 2 | |
paul@2 | 3 | def f(x): |
paul@43 | 4 | g = lambda y, x=x: lambda z, x=x, y=y: (x, y, z, a) |
paul@2 | 5 | return g |
paul@2 | 6 | |
paul@2 | 7 | result = f(1)(2)(3) |
paul@2 | 8 | assert result == (1, 2, 3, 4) |