Libraryless. Click here for Pure Java version (3212L/18K).
static <A> L<A> dropAfter(A a, L<A> l) { int n = l(l); for i to n: if (eq(a, l.get(i))) ret takeFirst(l, i); ret l; }
download show line numbers debug dex old transpilations
Travelled to 4 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj, pyentgdyhuwx
No comments. add comment
Snippet ID: | #1032387 |
Snippet name: | dropAfter |
Eternal ID of this version: | #1032387/1 |
Text MD5: | 439f84f7086f0de95362dc6d5b86c619 |
Transpilation MD5: | 48ff09490d09ecb22fdc566bf3f851ed |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2021-09-02 04:36:29 |
Source code size: | 139 bytes / 7 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 158 / 216 |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) |