Libraryless. Click here for Pure Java version (9251L/51K).
1 | static <A extends Iterable> A pnlReversed(S prefix default "", A l) { |
2 | if (l != null) { |
3 | L<A> list = reversed(l); |
4 | int i = l(list); |
5 | for (O a : list) |
6 | print(prefix + (i--) + ". " + str(a)); |
7 | } |
8 | ret l; |
9 | } |
Began life as a copy of #1007684
download show line numbers debug dex old transpilations
Travelled to 3 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj
No comments. add comment
Snippet ID: | #1034236 |
Snippet name: | pnlReversed |
Eternal ID of this version: | #1034236/2 |
Text MD5: | 393dade0e6b7ae49681f12a6b2629f90 |
Transpilation MD5: | 8b51616dacdd0690de91c8f9d19a19f2 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2022-10-23 20:14:11 |
Source code size: | 227 bytes / 9 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 165 / 251 |
Version history: | 1 change(s) |
Referenced in: | [show references] |