1 | static <A> L<S> keysDeprefix(Map<S, A> map, S prefix) { |
2 | new L<A> l; |
3 | for (S s : keys(map)) |
4 | if (startsWith(s, prefix)) |
5 | l.add(s.substring(l(prefix))); |
6 | ret l; |
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: | #1008431 |
Snippet name: | keysDeprefix - get only keys starting with a prefix (and drop it) |
Eternal ID of this version: | #1008431/1 |
Text MD5: | 116bb530708a6832d32bcf27321deab4 |
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:31:59 |
Source code size: | 178 bytes / 7 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 538 / 582 |
Referenced in: | [show references] |