1 | static <A, B> T3<A, B, O> worksOnAllExamples_returnCounterExample(F1<A, B> f, Iterable<Pair<A, B>> examples, F2<O, O, Bool> equalsFunction) { |
2 | for (Pair<A, B> p : unnull(examples)) try { |
3 | O o = callF(f, p.a); |
4 | if (!callF(equalsFunction, p.b, o)) |
5 | ret t3(p.a, p.b, o); |
6 | } catch e { |
7 | printShortException(e); |
8 | ret t3(p.a, p.b, (O) e); |
9 | } |
10 | null; |
11 | } |
Began life as a copy of #1017164
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: | #1017172 |
Snippet name: | worksOnAllExamples_returnCounterExample |
Eternal ID of this version: | #1017172/5 |
Text MD5: | 00aaa21c482661872508db4ab91bd2bc |
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 16:42:17 |
Source code size: | 374 bytes / 11 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 383 / 420 |
Version history: | 4 change(s) |
Referenced in: | [show references] |