1 | static void printNumbered_flushed(L<S> l) { |
2 | int digits = l(str(l(l)); |
3 | for i over l: { |
4 | print(padLeft(str(i + 1), digits) + ". " + l.get(i)); |
5 | } |
6 | } |
Began life as a copy of #1006335
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, sawdedvomwva, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1006352 |
Snippet name: | printNumbered_flushed - print numbered list |
Eternal ID of this version: | #1006352/1 |
Text MD5: | 2faeb9ba1d5e85f6d568f251c9c2acdf |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2016-12-29 01:15:34 |
Source code size: | 158 bytes / 6 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 556 / 569 |
Referenced in: | [show references] |