Libraryless. Click here for Pure Java version (372L/3K).
1 | static <A> L<A> listWithSingleElementChanged(L<A> l, int i, A a) { |
2 | var l2 = cloneList(l); |
3 | l2.set(i, a); |
4 | ret l2; |
5 | } |
download show line numbers debug dex old transpilations
Travelled to 4 computer(s): bhatertpkbcr, iveijnkanddl, mowyntqkapby, mqqgnosmbjvj
No comments. add comment
Snippet ID: | #1034899 |
Snippet name: | listWithSingleElementChanged |
Eternal ID of this version: | #1034899/1 |
Text MD5: | edf8cb1eff62389936d4df38e67b88a3 |
Transpilation MD5: | 6c9fb8d272dd5b92fa26394cdd158f63 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2022-03-13 04:54:20 |
Source code size: | 123 bytes / 5 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 111 / 170 |
Referenced in: | [show references] |