Libraryless. Click here for Pure Java version (7383L/48K/163K).
!7 p { S text = loadPage("http://ai1.lol/wiki/structure/concepts"); L list = cast safeUnstructure(text); new HashMap map; long iid = 0; for (O o : list) map.put(++iid, o); S text2 = structure(map); Concepts newConcepts = new Concepts().safeLoad(text2); L<Concept> cc = list(newConcepts, "AIConcept"); for (Concept c : cc) { S id = getString(c, "globalID"); print(id + ": " + getString(c, "name")); } print("Have " + n(cc, "concepts")); }
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: | #1008152 |
Snippet name: | Load concepts from ai1.lol spike [OK] |
Eternal ID of this version: | #1008152/5 |
Text MD5: | d2bde46f72c13df04213dd55cd6e0f48 |
Transpilation MD5: | a2307351dff595089c1b7c80a0d70b54 |
Author: | stefan |
Category: | javax / a.i. |
Type: | JavaX source code |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2017-04-28 13:59:32 |
Source code size: | 484 bytes / 17 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 512 / 619 |
Version history: | 4 change(s) |
Referenced in: | [show references] |