Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

9
LINES

< > BotCompany Repo | #1034236 // pnlReversed

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (9251L/51K).

static <A extends Iterable> A pnlReversed(S prefix default "", A l) {
  if (l != null) {
    L<A> list = reversed(l);
    int i = l(list);
    for (O a : list)
      print(prefix + (i--) + ". " + str(a));
  }
  ret l;
}

Author comment

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: 164 / 250
Version history: 1 change(s)
Referenced in: [show references]