Libraryless. Click here for Pure Java version (9271L/62K).
1 | static Set philosophyBot_allPartsOfLHS(PhilosophyBot1.LogicRule rule) { |
2 | new Set out; |
3 | philosophyBot_allPartsOfLHS_collect(rule, out); |
4 | ret out; |
5 | } |
6 | |
7 | svoid philosophyBot_allPartsOfLHS_collect(O o, Set out) { |
8 | if (!out.add(o)) ret; |
9 | if (o cast PhilosophyBot1.LogicRule) { |
10 | philosophyBot_allPartsOfLHS_collect(o.lhs, out); |
11 | O rhs = o.rhs; |
12 | if (rhs cast PhilosophyBot1.LogicRule) |
13 | philosophyBot_allPartsOfLHS_collect(rhs, out); |
14 | } |
15 | if (o cast PhilosophyBot1.And) { |
16 | philosophyBot_allPartsOfLHS_collect(o.a, out); |
17 | philosophyBot_allPartsOfLHS_collect(o.b, out); |
18 | } |
19 | } |
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: | 182 / 272 |
Version history: | 6 change(s) |
Referenced in: | [show references] |