1 | srecord MatchJob(L<S> input, L<S> struct) { |
2 | new SS vars; |
3 | |
4 | void clear { input = new L; struct = new L; } |
5 | } |
6 | |
7 | static MatchJob matchJob_solved() { ret MatchJob(new L, new L); } |
8 | sbool matchJob_isSolved(MatchJob mj) { ret mj != null && empty(mj.input) && empty(mj.struct); } |
9 | |
10 | static MatchJob matchJob_map(O f, MatchJob mj) { |
11 | ret MatchJob((L<S>) callF(f, mj.input), (L<S>) callF(f, mj.struct)); |
12 | } |
13 | |
14 | static void matchJob_apply(O f, MatchJob mj) { |
15 | mj.input = (L<S>) callF(f, mj.input); |
16 | mj.struct = (L<S>) callF(f, mj.struct); |
17 | } |
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1014064 |
Snippet name: | MatchJob [Include] |
Eternal ID of this version: | #1014064/1 |
Text MD5: | 6b8bc14b1ff3525ba4cbf08f9fa6614a |
Author: | stefan |
Category: | javax / a.i. |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-03-27 22:00:57 |
Source code size: | 545 bytes / 17 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 325 / 361 |
Referenced in: | [show references] |