Libraryless. Click here for Pure Java version (7718L/51K/170K).
1 | !7 |
2 | |
3 | sS snippetID = #1007208; |
4 | |
5 | p { |
6 | S text = loadSnippet(snippetID); |
7 | Concepts newConcepts = new Concepts(snippetID).safeLoad(text); |
8 | print(n(list(newConcepts, "AIConcept"), "concept") + " loaded from " + snippetID); |
9 | |
10 | Concepts myConcepts = new Concepts(#1006463).load(); |
11 | print("I have " + n(list(myConcepts, "AIConcept"), "concept"); |
12 | |
13 | Map<S, AIConcept> myIDs = indexByField(list(myConcepts, AIConcept), "globalID"); |
14 | |
15 | for (Concept c : list(newConcepts, "AIConcept")) { |
16 | S id = getString(c, "globalID"); |
17 | bool has = myIDs.containsKey(id); |
18 | print("ID: " + id + " - " + (has ? "I have it" : "I don't have it")); |
19 | } |
20 | } |
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt, wtqryiryparv
No comments. add comment
Snippet ID: | #1007209 |
Snippet name: | Prepare to import AI concepts from server |
Eternal ID of this version: | #1007209/3 |
Text MD5: | 2fe210c48bdca4aefadc3490a0753554 |
Transpilation MD5: | 9d6c876788a07d2ed38de00a1f779bef |
Author: | stefan |
Category: | javax / a.i. |
Type: | JavaX source code |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2017-03-12 01:19:01 |
Source code size: | 657 bytes / 20 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 559 / 626 |
Version history: | 2 change(s) |
Referenced in: | [show references] |