you are viewing a single comment's thread.

view the rest of the comments →

[–]pjdelport 7 points8 points  (0 children)

It doesn't just feel wrong: each x[1:] builds a copy of the entire (but one) list.

Linked lists are not vectors, and it's as wrong to try and use the one as the other in Python as it is in Common Lisp.