Apr-16-2019, 09:18 PM
And again I ask: why would you want to do this? Your example returns the same value for every item, so the list order doesn't change. It's pointless. I can't think of a practical reason to have more than one parameter to the key function. If you come up with a practical reason and a real example, we might be able to come up with a way around the restriction of one parameter for the key function. Without that, all we can say is "you can't do that."
Craig "Ichabod" O'Brien - xenomind.com
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures