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

8
LINES

< > BotCompany Repo | #1003564 // occ2_findNode - find node in occ tree - was: findNode

JavaX fragment (include)

static OccTree2 occ2_findNode(OccTree2 tree, E e) {
  if (eq(tree.e, e)) ret tree;
  for (OccTree2 n : tree.next) {
    OccTree2 t = occ2_findNode(n, e);
    if (t != null) ret t;
  }
  null;
}

download  show line numbers  debug dex  old transpilations   

Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ddnzoavkxhuk, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1003564
Snippet name: occ2_findNode - find node in occ tree - was: findNode
Eternal ID of this version: #1003564/4
Text MD5: 46c9132c732797f51df87cd2b85658c7
Author: stefan
Category: javax / talking robots
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-10-16 19:00:58
Source code size: 200 bytes / 8 lines
Pitched / IR pitched: No / No
Views / Downloads: 486 / 484
Version history: 3 change(s)
Referenced in: [show references]