using lambda to print everything in a list

Remco Gerlich scarblac at pino.selwerd.nl
Sun Apr 29 03:42:40 EDT 2001


Bjorn Pettersen <BPettersen at NAREX.com> wrote in comp.lang.python:
> or
> 
> 	def write(x):
> 	   print x
> 
> 	map(lambda x: write(x), ['line one', 'line two'])

Argh. We need UUOL (Useless Use Of Lambda) awards.

-- 
Remco Gerlich



More information about the Python-list mailing list