Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

7
LINES

< > BotCompany Repo | #1008380 // dropNoWordKeys - drop keys from map that are only symbols

JavaX fragment (include)

static <A> Map<S, A> dropNoWordKeys(Map<S, A> map) {
  Map m = similarEmptyMap(map);
  for (S s : keys(map))
    if (containsWords(s))
      m.put(s, map.get(s));
  ret m;
}

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: 388 / 427
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)
#1008383 - onlyNoWordKeys - keep only keys from map that are only symbols