Libraryless. Click here for Pure Java version (2215L/14K).
1 | static <A> A popLast_slow(Cl<A> l) {
|
2 | if (l instanceof L) ret popLast((L<A>) l); |
3 | if (empty(l)) null; |
4 | A a = last(iterator(l)); |
5 | l.remove(a); |
6 | ret a; |
7 | } |
download show line numbers debug dex old transpilations
Travelled to 6 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1025384 |
| Snippet name: | popLast_slow |
| Eternal ID of this version: | #1025384/3 |
| Text MD5: | 2cd3dfa89bdb5c8afa34d72cb939d46e |
| Transpilation MD5: | 08cc9240abdde8af9204c730c2c4957f |
| Author: | stefan |
| Category: | javax / discord bots |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2019-09-27 01:47:03 |
| Source code size: | 164 bytes / 7 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 384 / 517 |
| Version history: | 2 change(s) |
| Referenced in: | [show references] |