Quote Originally Posted by laggyluk View Post
btw if you gonna iterate over list and remove elements in the process then better start from the end and do 'downto' or indexes will mess up
Of course. I've thought that was no-brainer. Also didn't know that Freepascal has generic collections, thought it was only java/c# thing. Nice to know.