static S cal_structure(CirclesAndLines cal) { ret cal_structure_impl(restructure(cal)); } static S cal_structure_impl(CirclesAndLines cal) { if (cal.arrowClass == Arrow) cal.arrowClass = null; if (cal.circleClass == Circle) cal.circleClass = null; for (Circle c : cal.circles) cal_structure_simplifyElement(c); for (Line l : cal.lines) cal_structure_simplifyElement(l); ret structure(cal); } static void cal_structure_simplifyElement(Base b) { if (eq(b.traits, ll(b.text))) b.traits = null; }
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: | #1009991 |
Snippet name: | cal_structure - simplifies |
Eternal ID of this version: | #1009991/6 |
Text MD5: | 95b3f730e5e5743fc2b504f90d4375c8 |
Author: | stefan |
Category: | javax / a.i. |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2017-09-12 17:30:08 |
Source code size: | 522 bytes / 15 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 532 / 547 |
Version history: | 5 change(s) |
Referenced in: | [show references] |