F
fp2161
I don't think "obvious" is quite the right description. Well, perhaps
"obviously wrong"
You also need to define func1 (trivial), func2, func3, func5, func6,
func7, func8, ..., func2147483647, plus another master function to choose
between them, depending on the number of functions provided as argument.
I assume that the maximum number of arguments given is 2**31-1. Python
may not actually have that limitation, in which case you would need to
define additional functions.
Or... you would have to come up with an implementation which doesn't hard-
code the number of functions used.
Steven
I got the generalisation criticism before yours, and generalised it accordingly. Unfortunately it was wrong essentially because it was so obvious that Josh Englsih posted essentially the same one before me...