1 | static L<Pair<S>> mapDoubleArrowsToPairs(L<S> l) {
|
2 | new L<Pair<S>> out; |
3 | for (S s : l) {
|
4 | L<S> x = splitAtDoubleArrow(s); |
5 | if (l(x) == 2) out.add(listToPair(x)); |
6 | } |
7 | ret out; |
8 | } |
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: | 539 / 589 |
| Referenced in: | [show references] |