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

7
LINES

< > BotCompany Repo | #1031921 // replaceInClonedList

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

Libraryless. Click here for Pure Java version (3003L/17K).

static <A> L<A> replaceInClonedList(L<A> l, A a, A b) {
  ret replace(cloneList(l), a, b);
}

static <A> L<A> replaceInClonedList(A a, A b, L<A> l) {
  ret replaceInClonedList(l, a, b);
}

Author comment

Began life as a copy of #1007775

download  show line numbers  debug dex  old transpilations   

Travelled to 3 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx

No comments. add comment

Snippet ID: #1031921
Snippet name: replaceInClonedList
Eternal ID of this version: #1031921/1
Text MD5: 3f52abb348fa05901be81d5738fc3efe
Transpilation MD5: 60fc5c6184c6fe3888f9990be0afbbce
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-08-02 04:03:41
Source code size: 193 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 193 / 255
Referenced in: [show references]