Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

/PROG/SICP CHALLENGE

Name: Anonymous 2008-09-01 7:21

IMPLEMENT THE COLLECTOR!!!

(((((o) 'a) 'b) 'c)) ; => (a b c)

Name: Anonymous 2008-09-02 10:40

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]

Doingitrite? What an amazingly useless function.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List