// pred: func(int) -> bool static Pair> mapLike filterAntiFilterListByPredicateOnIndex(O pred, L l) { new L yes; new L no; int n = l(l); for i to n: (isTrue_callF(pred, i) ? yes : no).add(l.get(i)); ret pair(yes, no); }