1 | static void printUnrolledStringTree(StringTree1 tree) { |
2 | printUnrolledStringTree("", tree); |
3 | } |
4 | |
5 | static void printUnrolledStringTree(S prefix, StringTree1 tree) { |
6 | if (tree == null) ret; |
7 | if (tree.leaf) print(prefix); |
8 | for (S s : keys(tree.children)) |
9 | printUnrolledStringTree(appendSpaceIfNempty(prefix) + s, tree.children.get(s)); |
10 | } |
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1008656 |
Snippet name: | printUnrolledStringTree |
Eternal ID of this version: | #1008656/4 |
Text MD5: | 4e45253fa84c6883730a87f4be1bea1d |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2017-05-27 01:31:32 |
Source code size: | 349 bytes / 10 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 537 / 548 |
Version history: | 3 change(s) |
Referenced in: | [show references] |