static int nfilter(Iterable c, IF1 pred) {
ret nfilter(pred, c);
}
static int nfilter(IF1 pred, Iterable c) {
int n = 0;
if (c != null) for (A o : c)
if (pred.get(o))
++n;
ret n;
}
static int nfilter(Iterable c, O pred) {
int n = 0;
if (c != null) for (O o : c)
if (isTrue(callF(pred, o)))
++n;
ret n;
}
static int nfilter(O pred, Iterable c) {
ret nfilter(c, pred);
}