lreplace
Replace elements in a list with new elements