1 | static Map getMap(Map map, O key) { |
2 | ret map == null ? null : (Map) map.get(key); |
3 | } |
4 | |
5 | static Map getMap(L l, int idx) { |
6 | ret (Map) get(l, idx); |
7 | } |
8 | |
9 | static Map getMap(O o, O key) { |
10 | if (o instanceof Map) ret getMap((Map) o, key); |
11 | if (key instanceof S) |
12 | ret (Map) get(o, (S) key); |
13 | throw fail("Not a string key: " + getClassName(key)); |
14 | } |
Began life as a copy of #1001954
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: | #1003889 |
Snippet name: | getMap |
Eternal ID of this version: | #1003889/1 |
Text MD5: | 16f240accc2dbada26db8d01322a4ebb |
Author: | stefan |
Category: | |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2016-07-29 17:50:09 |
Source code size: | 355 bytes / 14 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 628 / 609 |
Referenced in: | [show references] |