Libraryless. Click here for Pure Java version (8789L/56K).
svoid philosophyBot1_bool(PhilosophyBot1 bot) { // native predicates now work in rule lhs too bot.addNativePredicate("true", map -> true); bot.addNativePredicate("$x = $y", map -> eqic($x(map), $y(map))); bot.addNativePredicate("$x != $y", map -> { S x = $x(map), y = $y(map); print("equality check: " + x + " / " + y); ret !eqic(x, y); }); }
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: | 494 / 655 |
| Version history: | 9 change(s) |
| Referenced in: | [show references] |