static L<S> startingWith_dropPrefix(Collection<S> l, fS prefix) { new L<S> out; for (S s : unnull(l)) if (startsWith(s, prefix)) out.add(substring(s, l(prefix))); ret out; } static L<S> startingWith_dropPrefix(S prefix, Collection<S> l) { ret startingWith_dropPrefix(l, prefix); }
Began life as a copy of #1008860
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: | #1008863 |
Snippet name: | startingWith_dropPrefix - only return elements starting with X, drop prefix |
Eternal ID of this version: | #1008863/1 |
Text MD5: | c97b894332ef22cd7a0bbf2ce5154bb7 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2017-06-14 13:57:14 |
Source code size: | 309 bytes / 11 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 519 / 556 |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) #1014769 - startingWithEndingWith_drop - drop prefix & suffix #1027981 - startingWithIC_dropPrefix - only return elements starting with X (case-insensitive), drop prefix |