Suppose you have the following array
stuff = [:dog,:cat,:orange,:banana]
- How can you slice this array to create a new array
[:cat,:orange] - Add the element
:appleon to the end of the array. - Now take
:appleback off again - Add the element
:fishto the start of the array. - Now remove the element
:fish.