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

3
LINES

< > BotCompany Repo | #1012216 // pairLines - group lines in pairs; drops last line if single

JavaX fragment (include)

static L<Pair<S>> pairLines(S s) {
  ret listToPairs(lines(s));
}

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: #1012216
Snippet name: pairLines - group lines in pairs; drops last line if single
Eternal ID of this version: #1012216/2
Text MD5: 3a814a04d45d0d0c97aceb11098e9cfa
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-11-24 11:28:29
Source code size: 67 bytes / 3 lines
Pitched / IR pitched: No / No
Views / Downloads: 349 / 411
Version history: 1 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)
#1012218 - listToPairs - group elements in pairs; drops last element if single
#1012499 - pairLines_tlftj