static Tree<FileWithSize> sortTreeOfFilesWithSizeBySize(Tree<FileWithSize> tree) { visitTree(tree, voidfunc(Tree<FileWithSize> t) { sortByCalculatedFieldDescInPlace(t.children, func(Tree<FileWithSize> t) { t.a.size }) }); ret tree; }
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: | 332 / 365 |
Version history: | 2 change(s) |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) |