static IterableIterator filterIterator(final Iterator it, final F1 f) {
if (it == null) null;
ret iff(func -> O {
while (it.hasNext()) {
A a = it.next();
if (callF(f, a))
ret a;
}
ret endMarker();
});
}
static IterableIterator filterIterator(final Iterator it, final IF1 f) {
if (it == null) null;
ret iff(func -> O {
while (it.hasNext()) {
A a = it.next();
if (callF(f, a))
ret a;
}
ret endMarker();
});
}
static IterableIterator filterIterator(final F1 f, final Iterator it) {
ret filterIterator(it, f);
}
static IterableIterator filterIterator(Cl l, IF1 f) {
if (l == null) null;
Iterator it = iterator(l);
ret iff(func -> O {
while (it.hasNext()) {
A a = it.next();
if (f.get(a))
ret a;
}
ret endMarker();
});
}
static ItIt lambdaMapLike filterIterator(IF1 f, Iterator it) {
ret filterIterator(it, f);
}