Libraryless. Click here for Pure Java version (1691L/11K).
static int indexOfPred(L l, O pred) {
for i over l:
if (checkCondition(pred, l.get(i)))
ret i;
ret -1;
}
static <A, B> int indexOfPred(L<A> l, IF1<A, B> pred) {
ret indexOfPred(l, (O) pred);
}Began life as a copy of #1006407
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mowyntqkapby, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment