in reply to Re^2: Arbitrarily Nested HoH
in thread Arbitrarily Nested HoH

Stack.   Queue.   Whatever.   :-D

“Verily, verily, I code unto thee:   he who seeks to be first, shall be last...”   :-;

You store the items, in some method and according to some suitable discipline, and then you “work through the list(s).”   That’s the gist of it.