1 | static MultiMap litmultimap(O... x) { |
2 | new MultiMap mm; |
3 | litmultimap_impl(mm, x); |
4 | ret mm; |
5 | } |
6 | |
7 | static void litmultimap_impl(MultiMap mm, O... x) { |
8 | for (int i = 0; i < x.length-1; i += 2) |
9 | if (x[i+1] != null) |
10 | mm.putAll(x[i], (L) x[i+1]); |
11 | } |
Began life as a copy of #1001695
download show line numbers debug dex old transpilations
Travelled to 7 computer(s): bhatertpkbcr, cfunsshuasjs, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1023181 |
Snippet name: | litmultimap - key, L<value>, key, L<value>, ... |
Eternal ID of this version: | #1023181/3 |
Text MD5: | 65f37826ba636380580a1f6b90e949e9 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2019-05-16 01:20:27 |
Source code size: | 261 bytes / 11 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 319 / 338 |
Version history: | 2 change(s) |
Referenced in: | [show references] |