Libraryless. Click here for Pure Java version (9271L/62K).
static Set philosophyBot_allPartsOfLHS(PhilosophyBot1.LogicRule rule) { new Set out; philosophyBot_allPartsOfLHS_collect(rule, out); ret out; } svoid philosophyBot_allPartsOfLHS_collect(O o, Set out) { if (!out.add(o)) ret; if (o cast PhilosophyBot1.LogicRule) { philosophyBot_allPartsOfLHS_collect(o.lhs, out); O rhs = o.rhs; if (rhs cast PhilosophyBot1.LogicRule) philosophyBot_allPartsOfLHS_collect(rhs, out); } if (o cast PhilosophyBot1.And) { philosophyBot_allPartsOfLHS_collect(o.a, out); philosophyBot_allPartsOfLHS_collect(o.b, out); } }
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: | #1027391 |
Snippet name: | philosophyBot_allPartsOfLHS |
Eternal ID of this version: | #1027391/7 |
Text MD5: | 0f1edb85fa49e9e1d1c214c9dc49b7bd |
Transpilation MD5: | e25ecc663b59d794cb9e984a8e863d05 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2020-03-16 16:28:13 |
Source code size: | 606 bytes / 19 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 181 / 269 |
Version history: | 6 change(s) |
Referenced in: | [show references] |