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

6
LINES

< > BotCompany Repo | #1019102 // sortTreeOfFilesWithSizeBySize

JavaX fragment (include)

1  
static Tree<FileWithSize> sortTreeOfFilesWithSizeBySize(Tree<FileWithSize> tree) {
2  
  visitTree(tree, voidfunc(Tree<FileWithSize> t) {
3  
    sortByCalculatedFieldDescInPlace(t.children, func(Tree<FileWithSize> t) { t.a.size })
4  
  });
5  
  ret tree;
6  
}

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1019102
Snippet name: sortTreeOfFilesWithSizeBySize
Eternal ID of this version: #1019102/3
Text MD5: 37aff3baef4f6c4cf3dfb20c2ead33cc
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-10-23 17:21:38
Source code size: 248 bytes / 6 lines
Pitched / IR pitched: No / No
Views / Downloads: 331 / 365
Version history: 2 change(s)
Referenced in: [show references]