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

15
LINES

< > BotCompany Repo | #1014816 // asciiSideBySideWithBars

JavaX fragment (include)

1  
sS asciiSideBySideWithBars(LS texts) {
2  
  if (empty(texts)) ret asciiSideBySide(texts);
3  
  int rows = maxLineCount(texts);
4  
  L<S> out = ll(repLine(rows, "| "));
5  
  for i over texts: {
6  
    if (i != 0) out.add(repLine(rows, " | "));
7  
    out.add(texts.get(i));
8  
  }
9  
  out.add(repLine(rows, " |"));
10  
  ret asciiSideBySide(out);
11  
}
12  
13  
sS asciiSideBySideWithBars(S... texts) {
14  
  ret asciiSideBySideWithBars(asList(texts));
15  
}

Author comment

Began life as a copy of #1014814

download  show line numbers  debug dex  old transpilations   

Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1014816
Snippet name: asciiSideBySideWithBars
Eternal ID of this version: #1014816/4
Text MD5: ea9c7477a1ff2895894dbbe86c194498
Author: stefan
Category: javax / ascii
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-03-01 19:59:11
Source code size: 424 bytes / 15 lines
Pitched / IR pitched: No / No
Views / Downloads: 434 / 464
Version history: 3 change(s)
Referenced in: [show references]