splice vs slice Playground

slice and splice on train #1: which copies onto a new train, which changes train #1 itself and moves the rest, and what does each hand back? Every read and…

The key idea

slice copies, splice changes in place: similar names, opposite jobs

Try it in this playground