Uses 911K of libraries. Click here for Pure Java version (8751L/46K).
!7 concept TempFact { S globalID = aGlobalID(); S text; S context; } cmodule GazelleTempFacts > DynCRUD<TempFact> { // API Pair<S, Bool> addTempFact(S text, S context) { Pair<TempFact, Bool> p = uniq2_sync(TempFact, +text, +context); ret pair(p.a.globalID, p.b); } bool hasTempFact(S text) { ret hasConceptWhere TempFact(+text); } }
download show line numbers debug dex old transpilations
Travelled to 7 computer(s): bhatertpkbcr, cfunsshuasjs, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1021809 |
Snippet name: | Gazelle Temp Facts |
Eternal ID of this version: | #1021809/9 |
Text MD5: | c8b785312c7dd4798ce364752ef9a9e9 |
Transpilation MD5: | be4e1bb9ae500b1845abacaa31d08cb8 |
Author: | stefan |
Category: | javax / gazelle |
Type: | JavaX source code (Dynamic Module) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2019-02-28 11:34:25 |
Source code size: | 387 bytes / 20 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 311 / 38024 |
Version history: | 8 change(s) |
Referenced in: | #1021810 - dm_gazelle_addTempFact #1021814 - dm_gazelle_hasTempFact |