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

15
LINES

< > BotCompany Repo | #1014816 // asciiSideBySideWithBars

JavaX fragment (include)

sS asciiSideBySideWithBars(LS texts) {
  if (empty(texts)) ret asciiSideBySide(texts);
  int rows = maxLineCount(texts);
  L<S> out = ll(repLine(rows, "| "));
  for i over texts: {
    if (i != 0) out.add(repLine(rows, " | "));
    out.add(texts.get(i));
  }
  out.add(repLine(rows, " |"));
  ret asciiSideBySide(out);
}

sS asciiSideBySideWithBars(S... texts) {
  ret asciiSideBySideWithBars(asList(texts));
}

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: 435 / 465
Version history: 3 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)
#1014820 - asciiSideBySideWithBarsAllAround
#1021285 - asciiSideBySideWithSeparator