On Mar 9, 2009, at 5:31 PM, Adam Wolff wrote:

but it bothers me a little that those three functions are defined every time
that reduce is run.

They're not. They're defined when the source code is parsed, not when it's run. The only difference it makes to have them inside the reduce function is that they can access local variables of that function. There shouldn't be any difference in speed.

—Jens

Reply via email to