Libraryless. Click here for Pure Java version (3795L/22K).
static Map paramsToMap_withNulls(O... params) { int n = l(params); if (l(params) == 1 && params[0] instanceof Map) ret (Map) params[0]; new LinkedHashMap map; for (int i = 0; i+1 < n; i += 2) map.put(params[i], params[i+1]); ret map; }
Began life as a copy of #1009709
download show line numbers debug dex old transpilations
Travelled to 3 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj
No comments. add comment
Snippet ID: | #1032734 |
Snippet name: | paramsToMap_withNulls |
Eternal ID of this version: | #1032734/1 |
Text MD5: | f792b511024ed883e116e521da0e12a9 |
Transpilation MD5: | 6d6140c1a4da859a9a8559a095642a5c |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2021-10-04 02:58:32 |
Source code size: | 256 bytes / 8 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 170 / 237 |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) #1030949 - Transpiler output of #1031393 |