[Tutor] Higher-Order Function Examples
Walter Prins
wprins at gmail.com
Mon Feb 14 21:35:02 CET 2011
2011/2/14 Rafael Durán Castañeda <rafadurancastaneda at gmail.com>
> In the example I gave:
>
>
> sorted_list = sorted(list_strings, key = str.lower)
>
> sorted takes str.lower as a parameter, doesn't it? So, it should be a high
> order function
>
My apologies! Yes, you are of course quite correct! :)
Walter
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20110214/ddefa6fe/attachment.html>
More information about the Tutor
mailing list