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
elyses-enchantments: please explain, in instructions, why using deleteat() returns [], but if one returns a COPY of the pruned array, Int64[]'s returned instead? #912
I'm not certain why this would be, obviously I'm a beginner, & Exercism's my means of learning..
The elyses-enchantments exercise..
Please explain, in the instructions, why using
deleteat!( stack_of_cards )
returns
[]
but creating a copy of the array, without deleteat(), for some reason, produces Int64[]
( Some other language I tried learning, years-ago, you had to do it that way, so I used a for-loop for the before-deletion & another for the after-deletion, in doing a copy of the array, then returned the copy, .. which failed, obviously.