collect will apply a partial function to all elements of a Traversable and return a different collection
collect
Traversable