defined collect on Traversable.