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

15
LINES

< > BotCompany Repo | #1021570 // gazelle_treeView

JavaX fragment (include)

static TreeView<GazelleTree> gazelle_treeView(final GazelleTree t) {
  ret t == null ? null : new TreeView<GazelleTree> {
    GazelleTree node() { ret t; }
    L<TreeView<GazelleTree>> children() { ret map gazelle_treeView(t.children); }
    TreeView<GazelleTree> parent() { ret gazelle_treeView(t.parent); }
  };
}

static TreeView<GazelleTree> gazelle_treeView(final L<GazelleTree> l) {
  ret new TreeView<GazelleTree> {
    GazelleTree node() { null; }
    L<TreeView<GazelleTree>> children() { ret map gazelle_treeView(l); }
    TreeView<GazelleTree> parent() { null; }
  };
}

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: 311 / 324
Version history: 2 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)