map/filter/reduce/lambda opinions and background unscientific mini-survey

Sion Arrowsmith siona at chiark.greenend.org.uk
Thu Jul 7 17:50:04 CEST 2005


=?ISO-8859-2?Q?Pawe=B3?= Sakowski  <pawel at sakowski.pl> wrote:
>>>> ll=[[1,2],[3,4,5],[6]]
>>>> sum(ll,[])
>[1, 2, 3, 4, 5, 6]

That's a great argument for list.__add__ having the semantics of
extend rather than append 8-)

-- 
\S -- siona at chiark.greenend.org.uk -- http://www.chaos.org.uk/~sion/
  ___  |  "Frankly I have no feelings towards penguins one way or the other"
  \X/  |    -- Arthur C. Clarke
   her nu becomeþ se bera eadward ofdun hlæddre heafdes bæce bump bump bump



More information about the Python-list mailing list