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

10
LINES

< > BotCompany Repo | #1021285 // asciiSideBySideWithSeparator

JavaX fragment (include)

1  
static S asciiSideBySideWithSeparator(S sep, LS texts) {
2  
  if (empty(texts)) ret asciiSideBySide(texts);
3  
  int rows = maxLineCount(texts);
4  
  new L<S> out;
5  
  for i over texts: {
6  
    if (i != 0) out.add(repLine(rows, sep));
7  
    out.add(texts.get(i));
8  
  }
9  
  ret asciiSideBySide(out);
10  
}

Author comment

Began life as a copy of #1014816

download  show line numbers  debug dex  old transpilations   

Travelled to 7 computer(s): bhatertpkbcr, cfunsshuasjs, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1021285
Snippet name: asciiSideBySideWithSeparator
Eternal ID of this version: #1021285/1
Text MD5: d70ad419f9958be7a1d815d2193b147e
Author: stefan
Category: javax / ascii
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-02-06 16:40:21
Source code size: 291 bytes / 10 lines
Pitched / IR pitched: No / No
Views / Downloads: 289 / 308
Referenced in: [show references]