[Tutor] Higher-Order Function Examples

Alan Gauld alan.gauld at btinternet.com
Mon Feb 14 21:47:51 CET 2011


"Rafael Durán Castañeda" <rafadurancastaneda at gmail.com> wrote

> Could we consider sorted as an high order function?
>
> sorted_list = sorted(list_strings, key = str.lower)

Yes, there are lots of them All the GUI building functions in
Tkinter that take command arguments are higher order functions
too.  And many functions in programming frameworks like
Twisted and web frameworks take functions as arguments.
They are alll around if you look fior them...

Alan G 




More information about the Tutor mailing list