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

10
LINES

< > BotCompany Repo | #1021568 // dm_gazelle_expandTree

JavaX fragment (include)

1  
svoid dm_gazelle_expandTree(GazelleTree tree) {
2  
  dm_gazelle_expandTree(tree, 10);
3  
}
4  
5  
svoid dm_gazelle_expandTree(GazelleTree tree, int maxLevel) {
6  
  if (maxLevel <= 0 || tree == null) ret;
7  
  if (tree.ctx == null) tree.ctx = dm_gazelle_stdEvalContext();
8  
  for (GazelleTree t : dm_gazelle_getChildren(tree))
9  
    dm_gazelle_expandTree(t, maxLevel-1);
10  
}

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: #1021568
Snippet name: dm_gazelle_expandTree
Eternal ID of this version: #1021568/2
Text MD5: 19d260a70b41455f82130787cf13429f
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-19 16:48:35
Source code size: 359 bytes / 10 lines
Pitched / IR pitched: No / No
Views / Downloads: 336 / 359
Version history: 1 change(s)
Referenced in: [show references]