1 | static GazelleTree gazelle_searchTreeUpwards(F1<GazelleTree, Bool> pred, GazelleTree tree) { |
2 | if (tree == null || tree.parent == null) null; |
3 | L<GazelleTree> l = tree.parent.children; |
4 | if (!tree.parent.isSplitNode) l = reversed(l); |
5 | int i = indexOf(l, tree); |
6 | ret gazelle_searchTree_breadthFirst_backwards(pred, takeFirst(l, i)); |
7 | } |
download show line numbers debug dex old transpilations
Travelled to 7 computer(s): bhatertpkbcr, cfunsshuasjs, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1021564 |
Snippet name: | gazelle_searchTreeUpwards |
Eternal ID of this version: | #1021564/7 |
Text MD5: | 20b78e94c019a7e407a655065e3e567e |
Author: | stefan |
Category: | javax / a.i. |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2019-02-18 17:14:33 |
Source code size: | 341 bytes / 7 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 821 / 849 |
Version history: | 6 change(s) |
Referenced in: | [show references] |