Libraryless. Click here for Pure Java version (3952L/23K).
1 | static LS prependNumbering(Cl l) { |
2 | new LS out; |
3 | int i = 1; |
4 | fOr (O o : l) |
5 | out.add(n2(i++) + ". " + o); |
6 | ret out; |
7 | } |
download show line numbers debug dex old transpilations
Travelled to 3 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj
No comments. add comment
Snippet ID: | #1032761 |
Snippet name: | prependNumbering |
Eternal ID of this version: | #1032761/1 |
Text MD5: | 2c205b9699e84603079dea844223b4f0 |
Transpilation MD5: | 9799db2e124fd671186f374868cde9a2 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2021-10-04 16:33:39 |
Source code size: | 129 bytes / 7 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 126 / 190 |
Referenced in: | [show references] |