1 | static <A, B> Map<A, B> toMapAccordingToHeader(Collection<B> row, L<A> header) { |
2 | Iterator<B> it = iterator(row); |
3 | new HashMap<A, B> map; |
4 | for i over header: |
5 | if (!it.hasNext()) break; |
6 | else map.put(header.get(i), it.next()); |
7 | ret map; |
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: | #1012245 |
Snippet name: | toMapAccordingToHeader |
Eternal ID of this version: | #1012245/1 |
Text MD5: | 2d4d60d2a2fc6661ba02044874ec9d20 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2017-11-26 13:40:42 |
Source code size: | 254 bytes / 8 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 390 / 380 |
Referenced in: | [show references] |