1 | static <A> Map<S, A> dropNoWordKeys(Map<S, A> map) { |
2 | Map m = similarEmptyMap(map); |
3 | for (S s : keys(map)) |
4 | if (containsWords(s)) |
5 | m.put(s, map.get(s)); |
6 | ret m; |
7 | } |
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: | #1008380 |
Snippet name: | dropNoWordKeys - drop keys from map that are only symbols |
Eternal ID of this version: | #1008380/1 |
Text MD5: | 339985d96f9fa66d6905433366fd2dc8 |
Author: | stefan |
Category: | javax / a.i. |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2017-05-10 01:54:47 |
Source code size: | 179 bytes / 7 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 387 / 426 |
Referenced in: | [show references] |