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

7
LINES

< > BotCompany Repo | #1008432 // keysDeprefixNemptyValue - get only keys starting with a prefix (and drop it), filter by non-empty values

JavaX fragment (include)

static L<S> keysDeprefixNemptyValue(SS map, S prefix) {
  new L<S> l;
  for (S s : keys(map))
    if (startsWith(s, prefix) && nempty(map.get(s)))
      l.add(s.substring(l(prefix)));
  ret l;
}

Author comment

Began life as a copy of #1008431

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: #1008432
Snippet name: keysDeprefixNemptyValue - get only keys starting with a prefix (and drop it), filter by non-empty values
Eternal ID of this version: #1008432/2
Text MD5: 6d8fe3a2e772907494287964096dfefb
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-05-15 15:34:37
Source code size: 200 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 401 / 455
Version history: 1 change(s)
Referenced in: [show references]