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

12
LINES

< > BotCompany Repo | #1025742 // philosophyBot1_bool

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (8789L/56K).

1  
svoid philosophyBot1_bool(PhilosophyBot1 bot) {
2  
  // native predicates now work in rule lhs too
3  
  bot.addNativePredicate("true", map -> true);
4  
  bot.addNativePredicate("$x = $y",
5  
    map -> eqic($x(map), $y(map)));
6  
  bot.addNativePredicate("$x != $y",
7  
    map -> {
8  
      S x = $x(map), y = $y(map);
9  
      print("equality check: " + x + " / " + y);
10  
      ret !eqic(x, y);
11  
    });
12  
}

Author comment

Began life as a copy of #1025739

download  show line numbers  debug dex  old transpilations   

Travelled to 7 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv

No comments. add comment

Snippet ID: #1025742
Snippet name: philosophyBot1_bool
Eternal ID of this version: #1025742/10
Text MD5: 8949a69bf9c484c6571ca6d92de47ccb
Transpilation MD5: c2a246a9baa8b3965093ff8c5169abb1
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-02-23 12:10:36
Source code size: 391 bytes / 12 lines
Pitched / IR pitched: No / No
Views / Downloads: 268 / 392
Version history: 9 change(s)
Referenced in: [show references]