Libraryless. Click here for Pure Java version (2517L/16K).
1 | svoid <A> removeAllAfter(L<A> l, A a) {
|
2 | if (l == null) ret; |
3 | truncateList(l, smartIndexOf(l, a)+1); |
4 | } |
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: | 335 / 471 |
| Referenced in: | [show references] |