Making the case for "typed" lists/iterators in python

Arnaud Delobelle arnodel at gmail.com
Fri Dec 16 13:38:05 EST 2011


On 16 December 2011 18:25, Chris Angelico <rosuav at gmail.com> wrote:

> tee = lambda func,arg: (func(arg),arg)[1]

What a strange way to spell it!

def tee(func, arg):
    func(arg)
    return arg

-- 
Arnaud



More information about the Python-list mailing list