On Fri, 3 Nov 2006 08:51:41 -0700, "Dan Stovall" <[EMAIL PROTECTED]> said: > Here's my python version. I think that the list comperhension and use > of the reduce function might help with the speed. I have read that > they are supposed to be a bit faster than a standard for loop in > python.
Only in the special case of the function you are mapping being implemented in C. Otherwise, a list comprehension will be (slightly) faster as well as more readable. -Jonathan -- C++ is history repeated as tragedy. Java is history repeated as farce. --Scott McKay /* PLUG: http://plug.org, #utah on irc.freenode.net Unsubscribe: http://plug.org/mailman/options/plug Don't fear the penguin. */
