Libraryless. Click here for Pure Java version (3842L/22K).
sO mapMethodLike rgenget(O key, O o) { o = deref(o); if (o cast Map) { try object mapGet(o, key); if (key instanceof Int) try object mapGet(o, toLong(key)); } else if (key cast S) ret getOpt(o, key); null; }
Began life as a copy of #1024793
download show line numbers debug dex old transpilations
Travelled to 3 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj
No comments. add comment
| Snippet ID: | #1032571 | 
| Snippet name: | rgenget - generic get (field/map value) with reverse syntax | 
| Eternal ID of this version: | #1032571/6 | 
| Text MD5: | a34e47a626bc03a632d9162efcdce0ab | 
| Transpilation MD5: | 79986c1419cd473219f3850a36dd3a7f | 
| Author: | stefan | 
| Category: | javax | 
| Type: | JavaX fragment (include) | 
| Public (visible to everyone): | Yes | 
| Archived (hidden from active list): | No | 
| Created/modified: | 2021-10-04 05:12:16 | 
| Source code size: | 242 bytes / 10 lines | 
| Pitched / IR pitched: | No / No | 
| Views / Downloads: | 412 / 575 | 
| Version history: | 5 change(s) | 
| Referenced in: | [show references] |