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

4
LINES

< > BotCompany Repo | #1027870 // removeAllAfter - does nothing if element not found

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

Libraryless. Click here for Pure Java version (2517L/16K).

svoid <A> removeAllAfter(L<A> l, A a) {
  if (l == null) ret;
  truncateList(l, smartIndexOf(l, a)+1);
}

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: #1027870
Snippet name: removeAllAfter - does nothing if element not found
Eternal ID of this version: #1027870/1
Text MD5: 7edce2eee00936b0610dca655e981dd2
Transpilation MD5: 8bae6608fbb3a7a27454668af5dc8c73
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-04-16 13:29:04
Source code size: 107 bytes / 4 lines
Pitched / IR pitched: No / No
Views / Downloads: 92 / 153
Referenced in: [show references]