Haskell like (c:cs) syntax

Steve Holden steve at holdenweb.com
Wed Aug 29 15:25:49 CEST 2007


Istvan Albert wrote:
> On Aug 29, 8:12 am, Ricardo Aráoz <ricar... at gmail.com> wrote:
> 
>>>> Caution : L[0] and L[1:] are COPIES of the head and tail of the list.
> 
>> Sorry, should have written RETURN copies instead of ARE copies.
> 
> L[0] does not return a copy, it does what is says, returns the object
> stored at index 0.
> 
Well, if we're going to get picky it actually returns a reference to the 
object referenced by the list item indexed by 0. What was your point?

regards
  Steve
-- 
Steve Holden        +1 571 484 6266   +1 800 494 3119
Holden Web LLC/Ltd           http://www.holdenweb.com
Skype: holdenweb      http://del.icio.us/steve.holden
--------------- Asciimercial ------------------
Get on the web: Blog, lens and tag the Internet
Many services currently offer free registration
----------- Thank You for Reading -------------




More information about the Python-list mailing list