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

6
LINES

< > BotCompany Repo | #1006352 // printNumbered_flushed - print numbered list

JavaX fragment (include)

static void printNumbered_flushed(L<S> l) {
  int digits = l(str(l(l));
  for i over l: {
    print(padLeft(str(i + 1), digits) + ". " + l.get(i));
  }
}

Author comment

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: 451 / 456
Referenced in: [show references]