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

9
LINES

< > BotCompany Repo | #1023869 // ptElement_pathFromRoot

JavaX fragment (include)

static L<PTElement> ptElement_pathFromRoot(PTElement e) {
  new L<PTElement> l;
  while (e != null) {
    l.add(e);
    e = e.parent;
  }
  reverseInPlace(l);
  ret l;
}

Author comment

Began life as a copy of #1017431

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1023869
Snippet name: ptElement_pathFromRoot
Eternal ID of this version: #1023869/3
Text MD5: b3cbea5267be54d677a5b8ae333773f0
Author: stefan
Category: javax / a.i.
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-07-10 20:19:34
Source code size: 177 bytes / 9 lines
Pitched / IR pitched: No / No
Views / Downloads: 154 / 190
Version history: 2 change(s)
Referenced in: [show references]