Transpiled version (3422L) is out of date.
sS renderMultiSetAsLines_byPopularity(MultiSet ms, O... _) { optPar int padWidth = 6; optPar S connector = ": "; if (ms == null) ret "-"; new LS l; for (O o : ms.highestFirst()) l.add(lpad(padWidth, n2(ms.get(o))) + connector + str(o)); ret lines(l); } static <A> S renderMultiSetAsLines_byPopularity(Iterable<A> l, O... _) { ret renderMultiSetAsLines_byPopularity(toMultiSet(l), _); }
Began life as a copy of #1030104
download show line numbers debug dex old transpilations
Travelled to 4 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, vouqrxazstgt
No comments. add comment
Snippet ID: | #1030106 |
Snippet name: | renderMultiSetAsLines_byPopularity |
Eternal ID of this version: | #1030106/6 |
Text MD5: | d420a7e2dfd4c1ce1b20e4c851e8c2b7 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2022-08-21 07:36:00 |
Source code size: | 416 bytes / 13 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 214 / 314 |
Version history: | 5 change(s) |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) |