1 | static <A, B extends Map<A>> B bidiMapInPlace(B map) {
|
2 | for (Pair<A> p : mapToPairs(map)) |
3 | putIfNotThere(map, p.b, p.a); |
4 | ret map; |
5 | } |
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: | #1011172 |
| Snippet name: | bidiMapInPlace - favors early entries |
| Eternal ID of this version: | #1011172/5 |
| Text MD5: | 1eb6a8fb87fc654be7da41065f8c08a0 |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2017-12-01 16:22:37 |
| Source code size: | 141 bytes / 5 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 847 / 848 |
| Version history: | 4 change(s) |
| Referenced in: | [show references] |