Name: Anonymous 2008-09-01 7:21
IMPLEMENT THE COLLECTOR!!!
(((((o) 'a) 'b) 'c)) ; => (a b c)
(((((o) 'a) 'b) 'c)) ; => (a b c)
token = object()
def f(x=token, y=[]):
return y if x is token else lambda z=token: f(z, y + [x])
def o(): return f
>>> o()(3)(4)(7)()
[3, 4, 7]