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


< > BotCompany Repo | #1033987 // endingWith_dropSuffix

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (4566L/25K).

static LS endingWith_dropSuffix(Cl<S> l, S suffix) {
  new LS out;
  fOr (S s : l)
    if (endsWith(s, suffix))
      out.add(dropLast(l(suffix), s));
  ret out;

static LS endingWith_dropSuffix(S suffix, Cl<S> l) {
  ret endingWith_dropSuffix(l, suffix);

Author comment

Began life as a copy of #1014471

download  show line numbers  debug dex  old transpilations   

Travelled to 3 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj

No comments. add comment

Snippet ID: #1033987
Snippet name: endingWith_dropSuffix
Eternal ID of this version: #1033987/1
Text MD5: 8863a5dae25d5c3e3319a68c7a23877f
Transpilation MD5: b7ff4c70f14cf0587397a499a15c5123
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-01-15 06:23:40
Source code size: 269 bytes / 11 lines
Pitched / IR pitched: No / No
Views / Downloads: 48 / 84
Referenced in: [show references]