2

In the docs it says to iterator a FastSet you can do:

 for (FastSet.Record r = set.head(), end = set.tail(); (r = r.getNext()) != end;) {
     Object value = set.valueOf(r);    
 }

Question is: How to remove while iterating?

chrisapotek
  • 6,007
  • 14
  • 51
  • 85

1 Answers1

1

The delete(r) method seems apropos, although you may also want to look at the inherited Set operations, too.

trashgod
  • 203,806
  • 29
  • 246
  • 1,045