Libraryless. Click here for Pure Java version (4646L/26K).
sbool <A> removeLastIfSameAsFirst(L<A> l) { if (l(l) >= 2 && eq(first(l), last(l))) ret true with removeLast(l); false; }
download show line numbers debug dex old transpilations
Travelled to 3 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj
No comments. add comment
Snippet ID: | #1034101 |
Snippet name: | removeLastIfSameAsFirst |
Eternal ID of this version: | #1034101/2 |
Text MD5: | 83d2676ab9baf547947df4db10deb614 |
Transpilation MD5: | 9e4d7612361169828beddb253f079690 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2022-01-22 15:01:55 |
Source code size: | 133 bytes / 5 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 125 / 188 |
Version history: | 1 change(s) |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) |