learning scala list.collect collect will apply a partial function to all elements of a Traversable and return a different collection