static <A, B> IterableIterator<B> valuesOfMagicMap(final Map<A, B> map) { final Iterator<A> i = keysIterator(map); ret new IterableIterator<B> { public bool hasNext() { ret i.hasNext(); } public B next() { ret map.get(i.next()); } public void remove() { i.remove(); } }; }
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: | #1014179 |
Snippet name: | valuesOfMagicMap - values of a map with special get function |
Eternal ID of this version: | #1014179/3 |
Text MD5: | 78b757897c9c1520d333a526e04c982a |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-04-15 15:10:13 |
Source code size: | 343 bytes / 16 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 356 / 367 |
Version history: | 2 change(s) |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) |