static <A, B> bool worksOnAllExamples(F1<A, B> f, Iterable<Pair<A, B>> examples) { for (Pair<A, B> p : unnull(examples)) try { if (!eq(p.b, callF(f, p.a))) false; } catch e { printShortException(e); false; } true; }
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1017164 |
Snippet name: | worksOnAllExamples |
Eternal ID of this version: | #1017164/2 |
Text MD5: | b8b728fa4d734d565ae8727b3ab75daa |
Author: | stefan |
Category: | javax / a.i. |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-07-13 15:33:14 |
Source code size: | 243 bytes / 9 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 342 / 377 |
Version history: | 1 change(s) |
Referenced in: | [show references] |