You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The text was updated successfully, but these errors were encountered:
ahmadalfy
changed the title
Inaccurate implementation of the slice function in Arrays
[Chapter 5] Inaccurate implementation of the slice function
Sep 30, 2020
Earlier in chapter 5 about Arrays, it was mentioned that passing no argument to the
slice
function returns a copy of the array. So if we tried to do:While in your example here you are returning the array itself so:
I think it should be replaced by:
The text was updated successfully, but these errors were encountered: