It's building a new list and then throwing it away. But s/// is also modifying the elements of the original list.