Libraryless. Click here for Pure Java version (3412L/21K).
1 | sS renderMultiSetAsLines_keepOrder(MultiSet ms, O... _) { |
2 | optPar int padWidth = 6; |
3 | if (ms == null) ret "-"; |
4 | new LS l; |
5 | for (O o : keys(ms)) |
6 | l.add(lpad(padWidth, n2(ms.get(o))) + ": " + str(o)); |
7 | ret lines(l); |
8 | } |
Began life as a copy of #1010496
download show line numbers debug dex old transpilations
Travelled to 4 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, vouqrxazstgt
No comments. add comment
Snippet ID: | #1030104 |
Snippet name: | renderMultiSetAsLines_keepOrder |
Eternal ID of this version: | #1030104/3 |
Text MD5: | b82f3f0aed2166990470f6436cf08240 |
Transpilation MD5: | 4c243c188f83ba47ab72c3f1e1d6f94f |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2020-11-09 11:06:08 |
Source code size: | 229 bytes / 8 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 194 / 272 |
Version history: | 2 change(s) |
Referenced in: | [show references] |