Libraryless. Click here for Pure Java version (4471L/25K).
1 | static <A, B> ItIt<Pair<A, B>> multiMapPairIterator(MultiMap<A, B> mm) {
|
2 | ret nestedIterator(iterator(keys(mm.data)), key -> |
3 | (ItIt<Pair<A,B>>) mapI(iterator(mm.data.get(key)), val -> pair(key, val))); |
4 | } |
Began life as a copy of #1013540
download show line numbers debug dex old transpilations
Travelled to 4 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj, pyentgdyhuwx
No comments. add comment
| Snippet ID: | #1032523 |
| Snippet name: | multiMapPairIterator [OK but can be optimized] |
| Eternal ID of this version: | #1032523/5 |
| Text MD5: | ceb975e36f1e51c54c3ddab58574c285 |
| Transpilation MD5: | 2901039c0c55ca5a8bd2ec352a0f3a00 |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2021-09-14 18:28:51 |
| Source code size: | 210 bytes / 4 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 390 / 511 |
| Version history: | 4 change(s) |
| Referenced in: | [show references] |