static L<OccTree2> findNodes(OccTree2 tree, E e) { new L<OccTree2> l; findNodes_impl(tree, e, l); ret l; } static void findNodes_impl(OccTree2 tree, E e, L<OccTree2> l) { if (eq(tree.e, e)) l.add(tree); for (OccTree2 n : tree.next) findNodes_impl(n, e, l); }
Began life as a copy of #1003564
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: | #1003571 |
Snippet name: | findNodes - find nodes in occ tree |
Eternal ID of this version: | #1003571/1 |
Text MD5: | 1daf4d9fc593b666b5b24aff91716564 |
Author: | stefan |
Category: | javax / talking robots |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2016-07-19 17:45:41 |
Source code size: | 283 bytes / 11 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 580 / 583 |
Referenced in: | [show references] |