Libraryless. Click here for Pure Java version (3825L/22K).
1 | static <A, B extends L<A>> B removeLastAndReturnList(B l) { |
2 | removeLast(l); |
3 | ret l; |
4 | } |
5 | |
6 | static <A, B extends L<A>> B removeLastAndReturnList(B l, int n) { |
7 | removeLast(l, n); |
8 | ret l; |
9 | } |
10 | |
11 | static <A, B extends L<A>> B removeLastAndReturnList(int n, B l) { |
12 | ret removeLastAndReturnList(l, n); |
13 | } |
Began life as a copy of #1002305
download show line numbers debug dex old transpilations
Travelled to 3 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj
No comments. add comment
Snippet ID: | #1032651 |
Snippet name: | removeLastAndReturnList |
Eternal ID of this version: | #1032651/4 |
Text MD5: | cb63d73958e0e06eb8c59daece73eb41 |
Transpilation MD5: | b9c6109dc6b2fe2dbfe111f62905760d |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2021-09-30 04:46:11 |
Source code size: | 305 bytes / 13 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 141 / 204 |
Version history: | 3 change(s) |
Referenced in: | [show references] |