1 | static <A> void setFirstAndLast(L<A> l, A a) { |
2 | if (empty(l)) ret; |
3 | l.set(0, a); |
4 | l.set(l(l)-1, a); |
5 | } |
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: | 282 / 313 |
Referenced in: | [show references] |