@@ -0,0 +1,431 @@
+package io.domisum.lib.auxiliumlib.datacontainers;%0A%0Aimport java.util.function.Function;%0A%0Apublic enum KeepOrRemove%0A%7B%0A%09%0A%09KEEP,%0A%09REMOVE;%0A%09%0A%09%0A%09public static %3CT%3E void iterate(Iterable%3CT%3E iterable, Function%3CT, KeepOrRemove%3E inspectAction)%0A%09%7B%0A%09%09var iterator = iterable.iterator();%0A%09%09while(iterator.hasNext())%0A%09%09%7B%0A%09%09%09var whatDo = inspectAction.apply(iterator.next());%0A%09%09%09if(whatDo == KeepOrRemove.REMOVE)%0A%09%09%09%09iterator.remove();%0A%09%09%7D%0A%09%7D%0A%09%0A%7D%0A

Add KeepOrRemove