Libraryless. Click here for Pure Java version (5075L/28K).
1 | sbool all(O pred, Iterable l) { |
2 | if (l != null) for (O o : l) if (!isTrue(callF(pred, o))) false; |
3 | true; |
4 | } |
5 | |
6 | static <A> bool all(Iterable<A> l, IF1<A, Bool> f) { |
7 | if (l != null) for (A a : l) if (!f.get(a)) false; |
8 | true; |
9 | } |
10 | |
11 | static <A> bool lambdaMapLike all(IF1<A, Bool> f, Iterable<A> l) { |
12 | ret all(l, f); |
13 | } |
14 | |
15 | sbool all(int[] l, IIntPred f) { |
16 | if (l != null) for (int i : l) if (!f.get(i)) false; |
17 | true; |
18 | } |
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: | 505 / 702 |
Version history: | 6 change(s) |
Referenced in: | [show references] |