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

15
LINES

< > BotCompany Repo | #1009991 // cal_structure - simplifies

JavaX fragment (include)

1  
static S cal_structure(CirclesAndLines cal) {
2  
  ret cal_structure_impl(restructure(cal));
3  
}
4  
5  
static S cal_structure_impl(CirclesAndLines cal) {
6  
  if (cal.arrowClass == Arrow) cal.arrowClass = null;
7  
  if (cal.circleClass == Circle) cal.circleClass = null;
8  
  for (Circle c : cal.circles) cal_structure_simplifyElement(c);
9  
  for (Line l : cal.lines) cal_structure_simplifyElement(l);
10  
  ret structure(cal);
11  
}
12  
13  
static void cal_structure_simplifyElement(Base b) {
14  
  if (eq(b.traits, ll(b.text))) b.traits = null;
15  
}

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: 456 / 475
Version history: 5 change(s)
Referenced in: [show references]