This is an accurate and a very good point. I think I got carried away explaining one part, neglecting the other. We do retain a copy of the array. And the values in the original array are not affected.

I just fixed it in text. Thanks for pointing this out!

--

--

Get Ghost Messenger @ https://semicolon.dev

Love podcasts or audiobooks? Learn on the go with our new app.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store