Libraryless. Click here for Pure Java version (5028L/33K/112K).
1 | !752 |
2 | |
3 | concepts. |
4 | |
5 | !include #1005347 // Classes for Smart Console |
6 | |
7 | p { |
8 | loadConceptsFrom("#1005320"); |
9 | |
10 | new MultiMap<S, S> questionsToAnswers; |
11 | new TreeSet<S> questions; |
12 | for (UserLine ul) { |
13 | S s = ul.text; |
14 | questions.add(ul.text); |
15 | for (UserAnswer ua : findBackRefs(ul, UserAnswer)) |
16 | questionsToAnswers.put(ul.text, ua.text); |
17 | } |
18 | |
19 | for (S q : questions) { |
20 | if (swic(q, "get parts ")) { |
21 | O worker = hotwireOnce("#1005364"); |
22 | S answer = callAnswerMethod(worker, q); |
23 | print(q + " => " + answer); |
24 | if (contains(questionsToAnswers.get(q), answer)) |
25 | print(" Success!"); |
26 | else |
27 | print(" Hm."); |
28 | } |
29 | } |
30 | } |
Began life as a copy of #1005349
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ddnzoavkxhuk, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1005365 |
Snippet name: | Solve some questions from Smart Console ["get parts"] |
Eternal ID of this version: | #1005365/1 |
Text MD5: | 804786dd0ac9c2817f2b777537e35a6a |
Transpilation MD5: | 73417619b78aa68c54827dda001ef5b6 |
Author: | stefan |
Category: | javax / a.i. |
Type: | JavaX source code |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2016-11-09 17:09:40 |
Source code size: | 692 bytes / 30 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 524 / 600 |
Referenced in: | [show references] |