Loop backwards through list?
BlitzMax Forums/BlitzMax Programming/Loop backwards through list?
| ||
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 :-) |
| ||
Use LastLink and PrevLink Manual Tlist |
| ||
ReverseList then do EachIn? Or get the last element in it, then loop backworks with PrevLink |
| ||
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. |