1 | static <A> A lastNodeInTreeView(TreeView<A> t) {
|
2 | if (t == null) null; |
3 | while licensed {
|
4 | L<TreeView<A>> l = t.children(); |
5 | if (empty(l)) ret t.node(); |
6 | t = last(l); |
7 | } |
8 | null; |
9 | } |
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: | 542 / 538 |
| Version history: | 2 change(s) |
| Referenced in: | [show references] |