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

5
LINES

< > BotCompany Repo | #1009470 // flattenPairs

JavaX fragment (include)

static <A> L<A> flattenPairs(Collection<Pair<A>> l) {
  new L<A> out;
  for (Pair<A> p: unnull(l)) { out.add(p.a); out.add(p.b); }
  ret out;
}

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: #1009470
Snippet name: flattenPairs
Eternal ID of this version: #1009470/2
Text MD5: a1637a452ab8a77894013238a3f44060
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-08-03 19:28:03
Source code size: 147 bytes / 5 lines
Pitched / IR pitched: No / No
Views / Downloads: 341 / 377
Version history: 1 change(s)
Referenced in: [show references]