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).

1  
!7
2  
3  
sS concepts = [[
4  
  ["kboqghewjbfsjstm", "Test for integerness"],
5  
  ["qbtsoibiwlvsfuul", "A JavaX standard function"],
6  
  ["ypnmpoezxeomgaof", "isInteger", "the JavaX function"],
7  
  ["cukovmzoaabrjkad", "isQuoted", "the JavaX function"],
8  
  ["ghwqkbpspivlalrb", "X is the JavaX standard function called Y."],
9  
]];
10  
11  
sS statements = [[
12  
  ghwqkbpspivlalrb ypnmpoezxeomgaof "isInteger"
13  
  ghwqkbpspivlalrb cukovmzoaabrjkad "isQuoted"
14  
]];
15  
16  
p {
17  
  set loadFunctions_debug;
18  
  useFacts_cl(statements);
19  
  assertEqualsVerbose(true, conceptCall("ypnmpoezxeomgaof", "123"));
20  
  assertEqualsVerbose(false, conceptCall("ypnmpoezxeomgaof", "abc"));
21  
  assertEqualsVerbose(true, conceptCall("cukovmzoaabrjkad", quote("123")));
22  
  assertEqualsVerbose(false, conceptCall("cukovmzoaabrjkad", "abc"));
23  
  print("OK");
24  
}

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: 462 / 1009
Version history: 8 change(s)
Referenced in: [show references]