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

9
LINES

< > BotCompany Repo | #1003411 // printOccTree2 - uses toString() for elements

JavaX fragment (include)

static void printOccTree2(OccTree2 t) {
  printOccTree2_sub(t, "");
}

static void printOccTree2_sub(OccTree2 t, S indent) {
  print(indent + "[" + t.count + "]" + (t.e == null ? "" : " " + t.e));
  for (OccTree2 t2 : t.next)
    printOccTree2_sub(t2, indent + "  ");
}

Author comment

Began life as a copy of #1003341

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: #1003411
Snippet name: printOccTree2 - uses toString() for elements
Eternal ID of this version: #1003411/1
Text MD5: 71062b0688dd035c0834e93a1ba07055
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2016-06-30 21:20:38
Source code size: 277 bytes / 9 lines
Pitched / IR pitched: No / No
Views / Downloads: 560 / 736
Referenced in: [show references]