static <A, B> Map<A, B> toMapAccordingToHeader(Collection<B> row, L<A> header) { Iterator<B> it = iterator(row); new HashMap<A, B> map; for i over header: if (!it.hasNext()) break; else map.put(header.get(i), it.next()); ret map; }
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: | 388 / 378 |
Referenced in: | [show references] |