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

11
LINES

< > BotCompany Repo | #1016959 // startingWithICTrim_drop - drop prefix & trim

JavaX fragment (include)

1  
static L<S> startingWithICTrim_drop(Collection<S> l, fS prefix) {
2  
  new L<S> out;
3  
  for (S s : unnull(l))
4  
    if (swic(s, prefix))
5  
      out.add(trimSubstring(s, l(prefix)));
6  
  ret out;
7  
}
8  
9  
static L<S> startingWithICTrim_drop(S prefix, Collection<S> l) {
10  
  ret startingWithICTrim_drop(l, prefix);
11  
}

Author comment

Began life as a copy of #1014769

download  show line numbers  debug dex  old transpilations   

Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1016959
Snippet name: startingWithICTrim_drop - drop prefix & trim
Eternal ID of this version: #1016959/1
Text MD5: 0453beef3352c498f71a78011726bf7a
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-07-09 14:52:37
Source code size: 307 bytes / 11 lines
Pitched / IR pitched: No / No
Views / Downloads: 406 / 414
Referenced in: [show references]