Libraryless. Click here for Pure Java version (7718L/51K/170K).
!7 sS snippetID = #1007208; p { S text = loadSnippet(snippetID); Concepts newConcepts = new Concepts(snippetID).safeLoad(text); print(n(list(newConcepts, "AIConcept"), "concept") + " loaded from " + snippetID); Concepts myConcepts = new Concepts(#1006463).load(); print("I have " + n(list(myConcepts, "AIConcept"), "concept"); Map<S, AIConcept> myIDs = indexByField(list(myConcepts, AIConcept), "globalID"); for (Concept c : list(newConcepts, "AIConcept")) { S id = getString(c, "globalID"); bool has = myIDs.containsKey(id); print("ID: " + id + " - " + (has ? "I have it" : "I don't have it")); } }
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: | 558 / 624 |
Version history: | 2 change(s) |
Referenced in: | [show references] |