Libraryless. Click here for Pure Java version (2718L/16K).
static <A, B> L<Pair<A, B>> mapToPairs(Map<A, B> map) { LPair<A, B> l = emptyList(l(map)); if (map != null) for (Map.Entry<A, B> e : map.entrySet()) l.add(pair(e.getKey(), e.getValue())); ret l; }
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: | #1011173 |
Snippet name: | mapToPairs |
Eternal ID of this version: | #1011173/2 |
Text MD5: | 39768e9d56d525aa62f0b1618199cc1e |
Transpilation MD5: | d742041704b2260065ef842265a8895c |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2021-04-26 18:27:29 |
Source code size: | 211 bytes / 6 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 536 / 604 |
Version history: | 1 change(s) |
Referenced in: | [show references] |