Loop backwards through list?

BlitzMax Forums/BlitzMax Programming/Loop backwards through list?

Grey Alien(Posted 2006) [#1]
Is there an easy way to loop backwards though a list as Eachin only goes forwards? Oh I and I don't want to sort it first. Any advice welcome.

Thanks :-)


tonyg(Posted 2006) [#2]
Use LastLink and PrevLink
Manual Tlist


Perturbatio(Posted 2006) [#3]
ReverseList then do EachIn?

Or get the last element in it, then loop backworks with PrevLink


Grey Alien(Posted 2006) [#4]
sorry when I said I don't want to sort it, I meant I don't want to reverse it.

OK thanks then so Links is where it's at by the looks of things.