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

7
LINES

< > BotCompany Repo | #1015568 // joinWithEmptyLines

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

Libraryless. Click here for Pure Java version (2856L/17K).

static S joinWithEmptyLines(Iterable<S> l) {
  ret join("\n\n", map rtrim(l));
}

static S joinWithEmptyLines(S... l) {
  ret joinWithEmptyLines(asList(l));
}

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1015568
Snippet name: joinWithEmptyLines
Eternal ID of this version: #1015568/3
Text MD5: af2f0ee1439002e615057c77ca52672b
Transpilation MD5: 55ade2507d1c66d4d77ab4bc8a7c9a1f
Author: stefan
Category: javax / gui
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-02-23 11:42:42
Source code size: 164 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 538 / 661
Version history: 2 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)
#1026043 - joinNemptiesWithEmptyLines