static L<Map> findAllMaps(O json) { new L<Map> l; findAllMaps_impl(json, l); ret l; } static void findAllMaps_impl(O json, L l) { if (json instanceof L) for (O x : (L) json) findAllMaps_impl(x, l); else if (json instanceof Map) { l.add((Map) json); for (O x : values((Map) json)) findAllMaps_impl(x, l); } }
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: | #1003289 |
| Snippet name: | findAllMaps - scan JSON structure for maps |
| Eternal ID of this version: | #1003289/1 |
| Text MD5: | 5599d0db307af20cbb5c1bd27f50b715 |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2016-06-17 18:02:29 |
| Source code size: | 359 bytes / 16 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 892 / 897 |
| Referenced in: | [show references] |