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

Games

Name: C++ 2007-02-17 16:52

Hey prog how many of you like to program games?

Name: Anonymous 2007-02-23 21:28 ID:caWoz+Xy

<pre>def memoize(fn):
    vals = {}
    def memoized(*args):
        if args not in vals:
            vals[args] = fn(*args)
        return vals(args)
    return memoized</pre>

How do I formatted code on these boards?

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