lists goto item N

BlitzMax Forums/BlitzMax Programming/lists goto item N

Chris C(Posted 2005) [#1]
Okay I'm probably missing somthing obvious here!

is there any quick way to goto the Nth item in a list, rather than going to the first item and calling next N times?


Chris C(Posted 2005) [#2]
Method ValueAtIndex:Object( index )
uses a loop btw!


Dubious Drewski(Posted 2005) [#3]
Another reason I use arrays. But let's not get into that right now. ;)


taxlerendiosk(Posted 2005) [#4]
uses a loop btw!

How else would it? If it "went straight there" it wouldn't be a linked list, it'd be an array.