static <A> void setFirstAndLast(L<A> l, A a) { if (empty(l)) ret; l.set(0, a); l.set(l(l)-1, a); }
Began life as a copy of #1004144
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: | #1023724 |
Snippet name: | setFirstAndLast |
Eternal ID of this version: | #1023724/1 |
Text MD5: | 958299faac6ab9b9b86c63641d866f29 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2019-07-04 21:41:04 |
Source code size: | 108 bytes / 5 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 280 / 310 |
Referenced in: | [show references] |