Add list.replace(old, new, /, count=-1) for in-place element replacement
Hi everyone! I wanted to propose adding an in-place list.replace(old, new, /, count=-1) method to list and UserList. Right now, if we want to replace matching elements inside a list in place without allocating a temporary list via lst[:] = [...], we…