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

7
LINES

< > BotCompany Repo | #1008383 // onlyNoWordKeys - keep only keys from map that are only symbols

JavaX fragment (include)

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

Author comment

Began life as a copy of #1008380

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: #1008383
Snippet name: onlyNoWordKeys - keep only keys from map that are only symbols
Eternal ID of this version: #1008383/1
Text MD5: dc16c5482498e16ca81c32630b125241
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 02:00:48
Source code size: 180 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 481 / 487
Referenced in: [show references]