1 | static <A, B> bool worksOnAllExamples(F1<A, B> f, Iterable<Pair<A, B>> examples) { |
2 | for (Pair<A, B> p : unnull(examples)) try { |
3 | if (!eq(p.b, callF(f, p.a))) false; |
4 | } catch e { |
5 | printShortException(e); |
6 | false; |
7 | } |
8 | true; |
9 | } |
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: | 343 / 378 |
Version history: | 1 change(s) |
Referenced in: | [show references] |