[Tutor] Python functions are first-class citizens
memilanuk
memilanuk at gmail.com
Fri Aug 1 11:37:43 CEST 2014
On 08/01/2014 01:33 AM, Ben Finney wrote:
> Ah! Now I get a better idea why you're confused. There are two distinct
> uses of “key” going on.
Ahhh... no. Yes, I realize there were two different uses of 'key' and
no, I didn't think they were necessarily the same.
> * There is no guarantee all the items will be seen. ‘max’ could very
> well decide it's got the largest item and return it at any point. It's
> an implementation detail how it does that.
What?!? Are you serious? Under what kind of conditions?
> Broadly, you should consider the ‘max’ function a black box.
Yeah, I'm starting to see that...
--
Shiny! Let's be bad guys.
Reach me @ memilanuk (at) gmail dot com
More information about the Tutor
mailing list