Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

24
LINES

< > BotCompany Repo | #1007940 // Thought Bubble 1 prelude: Concept calling

JavaX source code (desktop) [tags: use-pretranspiled] - run with: x30.jar

Download Jar. Libraryless. Click here for Pure Java version (10179L/70K).

!7

sS concepts = [[
  ["kboqghewjbfsjstm", "Test for integerness"],
  ["qbtsoibiwlvsfuul", "A JavaX standard function"],
  ["ypnmpoezxeomgaof", "isInteger", "the JavaX function"],
  ["cukovmzoaabrjkad", "isQuoted", "the JavaX function"],
  ["ghwqkbpspivlalrb", "X is the JavaX standard function called Y."],
]];

sS statements = [[
  ghwqkbpspivlalrb ypnmpoezxeomgaof "isInteger"
  ghwqkbpspivlalrb cukovmzoaabrjkad "isQuoted"
]];

p {
  set loadFunctions_debug;
  useFacts_cl(statements);
  assertEqualsVerbose(true, conceptCall("ypnmpoezxeomgaof", "123"));
  assertEqualsVerbose(false, conceptCall("ypnmpoezxeomgaof", "abc"));
  assertEqualsVerbose(true, conceptCall("cukovmzoaabrjkad", quote("123")));
  assertEqualsVerbose(false, conceptCall("cukovmzoaabrjkad", "abc"));
  print("OK");
}

Author comment

Began life as a copy of #1007939

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: #1007940
Snippet name: Thought Bubble 1 prelude: Concept calling
Eternal ID of this version: #1007940/9
Text MD5: 000456a05197314df60c9aff47d63d12
Transpilation MD5: 4563373f64d6e7b0f3f559dc8005d45a
Author: stefan
Category: javax / a.i.
Type: JavaX source code (desktop)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-04-17 20:04:14
Source code size: 815 bytes / 24 lines
Pitched / IR pitched: No / No
Views / Downloads: 450 / 983
Version history: 8 change(s)
Referenced in: [show references]