Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

10
LINES

< > BotCompany Repo | #1008656 - printUnrolledStringTree

JavaX fragment (include)

static void printUnrolledStringTree(StringTree1 tree) {
  printUnrolledStringTree("", tree);
}

static void printUnrolledStringTree(S prefix, StringTree1 tree) {
  if (tree == null) ret;
  if (tree.leaf) print(prefix);
  for (S s : keys(tree.children))
    printUnrolledStringTree(appendSpaceIfNempty(prefix) + s, tree.children.get(s));
}

download  show line numbers  debug dex   

Travelled to 12 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz

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: 294 / 289
Version history: 3 change(s)
Referenced in: [show references]

Formerly at http://tinybrain.de/1008656 & http://1008656.tinybrain.de