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

11
LINES

< > BotCompany Repo | #1018727 // startingWithIC_drop - drop prefix

JavaX fragment (include)

static L<S> startingWithIC_drop(Collection<S> l, fS prefix) {
  new L<S> out;
  for (S s : unnull(l))
    if (swic(s, prefix))
      out.add(substring(s, l(prefix)));
  ret out;
}

static L<S> startingWithIC_drop(S prefix, Collection<S> l) {
  ret startingWithIC_drop(l, prefix);
}

Author comment

Began life as a copy of #1016959

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1018727
Snippet name: startingWithIC_drop - drop prefix
Eternal ID of this version: #1018727/1
Text MD5: aece7bdbd5b43e6be9a08a4e7227577f
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-10-12 00:41:09
Source code size: 291 bytes / 11 lines
Pitched / IR pitched: No / No
Views / Downloads: 305 / 352
Referenced in: [show references]