possibly trivial newbie list/array question
Mikael Olofsson
mikael at isy.liu.se
Wed Aug 22 04:11:47 EDT 2001
On 22-Aug-2001 Sylvain Thenault wrote:
> IMHO, the faster way to do it consists in using builtin map function:
>
> map([1.0, 2.0, 3.0], lambda x: 4.0*x)
That works better if you follow the map syntax;
map(lambda x: 4.0*x,[1.0, 2.0, 3.0])
/Mikael
-----------------------------------------------------------------------
E-Mail: Mikael Olofsson <mikael at isy.liu.se>
WWW: http://www.dtr.isy.liu.se/dtr/staff/mikael
Phone: +46 - (0)13 - 28 1343
Telefax: +46 - (0)13 - 28 1339
Date: 22-Aug-2001
Time: 10:10:23
/"\
\ / ASCII Ribbon Campaign
X Against HTML Mail
/ \
This message was sent by XF-Mail.
-----------------------------------------------------------------------
Linköpings kammarkör: www.kammarkoren.com
More information about the Python-list
mailing list