// returns null if case not solved static F1 quickSolveToFunction(S... ioioi) { O solver = defaultSolver(); lock defaultSolver_lock; fO case = call(solver, "quickSolve", (O) ioioi); if (!isTrue(call(case, 'solved))) null; ret new F1 { O get(O in) { ret call(case, 'processIn, in); } }; } static F1 quickSolveToFunction(SS ioioi) { ret quickSolveToFunction(mapToStringArray(ioioi)); } static F1 quickSolveToFunction(L<S> ioioi) { ret quickSolveToFunction(toStringArray(ioioi)); }
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: | #1010419 |
| Snippet name: | quickSolveToFunction - hotwire solver and produce function |
| Eternal ID of this version: | #1010419/4 |
| Text MD5: | b31275a694b056d13505bdb2f97119d9 |
| Author: | stefan |
| Category: | javax / a.i. |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2017-09-17 18:06:56 |
| Source code size: | 530 bytes / 20 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 699 / 729 |
| Version history: | 3 change(s) |
| Referenced in: | [show references] |