[Tutor] Extracting words..
alan.gauld@bt.com
alan.gauld@bt.com
Sun, 24 Mar 2002 23:55:38 -0000
> could also do it with lists, but the execution time grows
> exponentially with the data size :
True, but at least its shorter to code using map:
> Lst = ['JavaScript', 'MacWeek', 'MacWeek', 'CompuServe', 'CompuServe' ]
Lst = map(lambda item: item not in Lst, Lst)
Or if you must you could use list comprehension... ;-)
But isn't there a uniq() method on lists nowadays?
Or have I been hallucinating again?
Alan G