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

15
LINES

< > BotCompany Repo | #1021570 // gazelle_treeView

JavaX fragment (include)

1  
static TreeView<GazelleTree> gazelle_treeView(final GazelleTree t) {
2  
  ret t == null ? null : new TreeView<GazelleTree> {
3  
    GazelleTree node() { ret t; }
4  
    L<TreeView<GazelleTree>> children() { ret map gazelle_treeView(t.children); }
5  
    TreeView<GazelleTree> parent() { ret gazelle_treeView(t.parent); }
6  
  };
7  
}
8  
9  
static TreeView<GazelleTree> gazelle_treeView(final L<GazelleTree> l) {
10  
  ret new TreeView<GazelleTree> {
11  
    GazelleTree node() { null; }
12  
    L<TreeView<GazelleTree>> children() { ret map gazelle_treeView(l); }
13  
    TreeView<GazelleTree> parent() { null; }
14  
  };
15  
}

download  show line numbers  debug dex  old transpilations   

Travelled to 7 computer(s): bhatertpkbcr, cfunsshuasjs, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1021570
Snippet name: gazelle_treeView
Eternal ID of this version: #1021570/3
Text MD5: b9c85e434f8c3d8798bdc512597b3354
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-03-03 17:38:24
Source code size: 594 bytes / 15 lines
Pitched / IR pitched: No / No
Views / Downloads: 312 / 325
Version history: 2 change(s)
Referenced in: [show references]