1 | static OccTree2 occ2_findNode(OccTree2 tree, E e) {
|
2 | if (eq(tree.e, e)) ret tree; |
3 | for (OccTree2 n : tree.next) {
|
4 | OccTree2 t = occ2_findNode(n, e); |
5 | if (t != null) ret t; |
6 | } |
7 | null; |
8 | } |
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: | 776 / 782 |
| Version history: | 3 change(s) |
| Referenced in: | [show references] |