Composition of functions

Stephen Hansen me+list/python at ixokai.io
Thu Jul 1 10:15:17 EDT 2010


On 7/1/10 5:29 AM, Wolfram Hinderer wrote:
> On 1 Jul., 06:04, Stephen Hansen<me+list/pyt... at ixokai.io>  wrote:
>> The 'reversed' and 'sorted' functions are generators that lazilly
>> convert an iterable as needed.
>
> 'sorted' returns a new list (and is not lazy).

Oops, you're right. Got the two crossed into one in my head.

-- 

    ... Stephen Hansen
    ... Also: Ixokai
    ... Mail: me+list/python (AT) ixokai (DOT) io
    ... Blog: http://meh.ixokai.io/




More information about the Python-list mailing list