Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

[Discussion] 0 indexing -vs- 1 indexing

Name: Sagey McSagerson 2011-04-05 23:03

Discuss: Which is superior and why. Go go go go go

Name: Anonymous 2011-04-07 8:15

>>79
Enjoy your O(n).

Name: Anonymous 2011-04-07 9:00

>>81

Python doesn't cache the length?

Name: Anonymous 2011-04-07 10:23

>>82
Even if it does, you still have to walk the list to the nth element. Else, it's not a list, but a fucking dynamic array and you should not call it a list.

Name: Anonymous 2011-04-07 10:53

>>83

You should relax.

Name: Anonymous 2011-04-07 10:59

>>83
Maybe you shouldn't call your degenerate binary trees "lists" instead?

Name: Anonymous 2011-04-07 12:17

>>85
I call them nil-termined chain of cons cells.

Name: Anonymous 2011-04-07 15:03

>>83
Random Access List doesn't necessarily mean Dynamic Array.

http://www.eecs.usma.edu/webs/people/okasaki/pubs.html#fpca95

Name: Anonymous 2011-04-07 15:59

>>87
True, but Python ``lists'' are just dynamic arrays.

Name: Anonymous 2011-04-07 17:47

>>88

A list in the context of Python is of course a PyList object, your semanticism is no good here.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List