Libraryless. Click here for Pure Java version (4646L/26K).
1 | sbool <A> removeLastIfSameAsFirst(L<A> l) { |
2 | if (l(l) >= 2 && eq(first(l), last(l))) |
3 | ret true with removeLast(l); |
4 | false; |
5 | } |
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: | 126 / 189 |
Version history: | 1 change(s) |
Referenced in: | [show references] |