Libraryless. Click here for Pure Java version (2277L/15K/49K).
1 | !752 |
2 | |
3 | p { |
4 | Map<Long, O> concepts = safeLoadConcepts("#1005320"); |
5 | print("Number of concepts: " + l(concepts)); |
6 | for (O ua : valuesOfType(concepts, "main$UserAnswer")) { |
7 | long id = getLong(ua, "id"); |
8 | S a = getString(ua, "text"); |
9 | O ulRef = getOpt(ua, "userLine"); |
10 | O ul = getOptDyn(ulRef, "value"); |
11 | bool solvable = getBool(ua, "solvable"); |
12 | print("id=" + id + ", ulRef=" + dynamicClassName(ulRef) + ", " + struct(dynFields(ulRef) )+ ", ul=" + ul); |
13 | S q = getString(ul, "text"); |
14 | print((solvable ? "! " : "") + quote(q) + " => " + quote(a)); |
15 | } |
16 | } |
Began life as a copy of #1005077
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: | #1005401 |
Snippet name: | Test loading questions & answers from Smart Console using safeLoadConcepts [works] |
Eternal ID of this version: | #1005401/1 |
Text MD5: | 37f03e295c0a1ff978ede03e8add66e8 |
Transpilation MD5: | 1f2bd2bdc3c1c3bfbe12d209a4e9f271 |
Author: | stefan |
Category: | javax / concepts |
Type: | JavaX source code |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2016-11-14 16:12:21 |
Source code size: | 589 bytes / 16 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 544 / 644 |
Referenced in: | [show references] |