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

5
LINES

< > BotCompany Repo | #1034899 // listWithSingleElementChanged

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

Libraryless. Click here for Pure Java version (372L/3K).

static <A> L<A> listWithSingleElementChanged(L<A> l, int i, A a) {
  var l2 = cloneList(l);
  l2.set(i, a);
  ret l2;
}

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: 45 / 79
Referenced in: [show references]