Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

4
LINES

< > BotCompany Repo | #1028454 // cloneListReplacingElementAtIndex

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (2493L/16K).

static <A> L<A> cloneListReplacingElementAtIndex(L<A> l, int i, A a) {
  listSetIfInRange(l = cloneList(l), i, a);
  ret l;
}

download  show line numbers  debug dex  old transpilations   

Travelled to 7 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv

No comments. add comment

Snippet ID: #1028454
Snippet name: cloneListReplacingElementAtIndex
Eternal ID of this version: #1028454/1
Text MD5: 1cf8f054fbdf7ebcd3d8f3143f652c7d
Transpilation MD5: b9a962b0f2f1feaf36ab8c5b6443ffc5
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-06-20 19:57:24
Source code size: 128 bytes / 4 lines
Pitched / IR pitched: No / No
Views / Downloads: 136 / 185
Referenced in: [show references]