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

9
LINES

< > BotCompany Repo | #1021572 // lastNodeInTreeView

JavaX fragment (include)

static <A> A lastNodeInTreeView(TreeView<A> t) {
  if (t == null) null;
  while licensed {
    L<TreeView<A>> l = t.children();
    if (empty(l)) ret t.node();
    t = last(l);
  }
  null;
}

Author comment

Began life as a copy of #1021571

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: #1021572
Snippet name: lastNodeInTreeView
Eternal ID of this version: #1021572/3
Text MD5: b3d0f9463bb0e5a8d268fbfbab4b825b
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-02-18 16:32:44
Source code size: 198 bytes / 9 lines
Pitched / IR pitched: No / No
Views / Downloads: 287 / 292
Version history: 2 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)
#1021589 - treeView_allNodes - in some weird order