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

24
LINES

< > BotCompany Repo | #1008448 - pnl - synonym of printNumberedLines

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

Libraryless. Click here for Pure Java version (2163L/14K).

static <A extends Iterable> A pnl(S prefix, A l) {
  printNumberedLines(prefix, l);
  ret l;
}

static <A extends Iterable> A pnl(A l) {
  printNumberedLines(l);
  ret l;
}

static <A extends Map> A pnl(A map) {
  printNumberedLines(map);
  ret map;
}

static <A> A[] pnl(A[] a) {
  printNumberedLines(a);
  ret a;
}

sS pnl(S s) {
  printNumberedLines(lines(s));
  ret s;
}

Author comment

Began life as a copy of #1006335

download  show line numbers  debug dex   

Travelled to 11 computer(s): aoiabmzegqzx, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, jcllbfdqhrgy, lpdgvwnxivlt, mqqgnosmbjvj, tslmcundralx, tvejysmllsmz, whxojlpjdney

No comments. add comment

Snippet ID: #1008448
Snippet name: pnl - synonym of printNumberedLines
Eternal ID of this version: #1008448/13
Text MD5: 981293820dd43dbabee4926b95142e60
Transpilation MD5: bb8a7e333631d72181e6518a4703517c
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-08-14 12:22:21
Source code size: 397 bytes / 24 lines
Pitched / IR pitched: No / No
Views / Downloads: 361 / 427
Version history: 12 change(s)
Referenced in: [show references]

Formerly at http://tinybrain.de/1008448 & http://1008448.tinybrain.de