A function that removes/returns all array items after the first instance of a value, and a function that removes/returns all array items after the last instance of a value
2 functions: one removes and returns all array items before the first instance of a particular value, and the other removes and returns all array items before the last instance of a particular value