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

8
LINES

< > BotCompany Repo | #1014057 // mapDoubleArrowsToPairs

JavaX fragment (include)

static L<Pair<S>> mapDoubleArrowsToPairs(L<S> l) {
  new L<Pair<S>> out;
  for (S s : l) {
    L<S> x = splitAtDoubleArrow(s);
    if (l(x) == 2) out.add(listToPair(x));
  }
  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: #1014057
Snippet name: mapDoubleArrowsToPairs
Eternal ID of this version: #1014057/1
Text MD5: 9b3545330fd1955a3b2375e6a2f8cf30
Author: stefan
Category: javax / parsing
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-03-27 20:11:04
Source code size: 193 bytes / 8 lines
Pitched / IR pitched: No / No
Views / Downloads: 349 / 385
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)