// The idea is to postprocess to match out // e.g. out="a, b, c" // and f=FJoin(", ") static class LPost extends LearnerImpl { ReversibleFunction f; Learner base; *(ReversibleFunction *f, Learner *base) {} public void processInOut(Object in, Object out) { out = f.unprocess(out); base.processInOut(in, out); } public Object processIn(Object in) { in = base.processIn(in); in = f.process(in); return in; } public void toJava(Code code) { base.toJava(code); f.toJava_process(code); } }
Began life as a copy of #1000511
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, onxytkatvevr, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1000512 |
Snippet name: | LPost (learner) |
Eternal ID of this version: | #1000512/1 |
Text MD5: | c422dc6182f4401214cb4a68612cdf0c |
Author: | stefan |
Category: | |
Type: | IOIOI |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2015-08-09 20:36:08 |
Source code size: | 569 bytes / 26 lines |
Pitched / IR pitched: | No / Yes |
Views / Downloads: | 687 / 912 |
Referenced in: | #722 - IOIOI Processor (v15) #738 - IOIOI Solver (v16, most recent one) #3000382 - Answer for ferdie (>> t = 1, f = 0) |