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

5
LINES

< > BotCompany Repo | #1004883 // topBottomLines - decorate some text

JavaX fragment (include)

1  
static S topBottomLines(char c, S s) {
2  
  int w = lengthOfLongestLine(s);
3  
  S line = rep(c, w);
4  
  ret fromLines(concatLists(ll(line), toLines(s), ll(line)));
5  
}

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1004883
Snippet name: topBottomLines - decorate some text
Eternal ID of this version: #1004883/1
Text MD5: 201b61cea64c880779d50b9264290dbd
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2016-09-12 19:28:19
Source code size: 162 bytes / 5 lines
Pitched / IR pitched: No / No
Views / Downloads: 527 / 538
Referenced in: [show references]