Iteration 4 - Additional Methods -
Perfect, we are almost there! Next is to add
find takes two parameters, the first indicates the first position to return and the second parameter specifies how many elements to return.
includes? gives back true or false whether the supplied value is in the list.
pop removes elements the last element from the list.
.... > list.to_string => "deep woo shi shu blop" > list.find(2, 1) => "shi" > list.find(1, 3) => "woo shi shu" > list.includes?("deep") => true > list.includes?("dep") => false > list.pop => "blop" > list.pop => "shu" > list.to_string => "deep woo shi"