Libraryless. Click here for Pure Java version (3857L/22K).
static <A> A firstThat(Iterable<A> l, IF1<A, Bool> pred) { fOr (A a : l) if (pred.get(a)) ret a; null; } static <A> A firstThat(A[] l, IF1<A, Bool> pred) { fOr (A a : l) if (pred.get(a)) ret a; null; } static <A> A lambdaMapLike firstThat(IF1<A, Bool> pred, Iterable<A> l) { ret firstThat(l, pred); } static <A> A lambdaMapLike firstThat(IF1<A, Bool> pred, A[] l) { ret firstThat(l, pred); }
download show line numbers debug dex old transpilations
Travelled to 17 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mowyntqkapby, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, sawdedvomwva, tslmcundralx, tvejysmllsmz, vouqrxazstgt, whxojlpjdney, xrpafgyirdlv
No comments. add comment