1 | static L<OccTree2> findNodes(OccTree2 tree, E e) { |
2 | new L<OccTree2> l; |
3 | findNodes_impl(tree, e, l); |
4 | ret l; |
5 | } |
6 | |
7 | static void findNodes_impl(OccTree2 tree, E e, L<OccTree2> l) { |
8 | if (eq(tree.e, e)) l.add(tree); |
9 | for (OccTree2 n : tree.next) |
10 | findNodes_impl(n, e, l); |
11 | } |
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: | 581 / 584 |
Referenced in: | [show references] |