Libraryless. Click here for Pure Java version (5075L/28K).
sbool all(O pred, Iterable l) { if (l != null) for (O o : l) if (!isTrue(callF(pred, o))) false; true; } static <A> bool all(Iterable<A> l, IF1<A, Bool> f) { if (l != null) for (A a : l) if (!f.get(a)) false; true; } static <A> bool lambdaMapLike all(IF1<A, Bool> f, Iterable<A> l) { ret all(l, f); } sbool all(int[] l, IIntPred f) { if (l != null) for (int i : l) if (!f.get(i)) false; true; }
download show line numbers debug dex old transpilations
Travelled to 15 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt, whxojlpjdney, xrpafgyirdlv
No comments. add comment
Snippet ID: | #1011591 |
Snippet name: | all |
Eternal ID of this version: | #1011591/7 |
Text MD5: | 97e7b00998202d898bda2d1ef252f034 |
Transpilation MD5: | f35370da066be751fb395db0ac987b70 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2022-03-26 01:32:08 |
Source code size: | 428 bytes / 18 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 504 / 700 |
Version history: | 6 change(s) |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) |