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

11
LINES

< > BotCompany Repo | #1029605 // startingWith_drop - drop prefix

JavaX fragment (include)

static LS startingWith_drop(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 LS startingWith_drop(S prefix, Collection<S> l) {
  ret startingWith_drop(l, prefix);
}

Author comment

Began life as a copy of #1018727

download  show line numbers  debug dex  old transpilations   

Travelled to 7 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv

No comments. add comment

Snippet ID: #1029605
Snippet name: startingWith_drop - drop prefix
Eternal ID of this version: #1029605/1
Text MD5: f4214be97fbb3360fc71c1d40723025e
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-08-27 15:53:10
Source code size: 287 bytes / 11 lines
Pitched / IR pitched: No / No
Views / Downloads: 107 / 153
Referenced in: [show references]