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

11
LINES

< > BotCompany Repo | #1014471 // endingWithIC_dropSuffix

JavaX fragment (include)

static L<S> endingWithIC_dropSuffix(Collection<S> l, fS suffix) {
  new L<S> out;
  for (S s : unnull(l))
    if (ewic(s, suffix))
      out.add(dropLast(l(suffix), s));
  ret out;
}

static L<S> endingWithIC_dropSuffix(S suffix, Collection<S> l) {
  ret endingWithIC_dropSuffix(l, suffix);
}

Author comment

Began life as a copy of #1008835

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: #1014471
Snippet name: endingWithIC_dropSuffix
Eternal ID of this version: #1014471/1
Text MD5: d6ef0ea2857615d1ba192efcc09f1895
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-04-22 01:43:34
Source code size: 302 bytes / 11 lines
Pitched / IR pitched: No / No
Views / Downloads: 356 / 363
Referenced in: [show references]