title: How do I easily convert from one collection type to another during a filter, map, flatMap in Scala?
body: <p>Suppose I have a <code>List[Int]</code>, and I want to call <code>toString</code> on each element, and get back the result as a <code>Vector[String]</code>.</p>
  
  <p>What are the various ways to do this in Scala? Is there a solution with a minimal amount of explicit typing? — i.e., I want to specify that I want a <code>Vector</code> rather than a <code>List</code>, but I'd like the <code>String</code> argument to be inferred from the filter function.</p>
  
  <p>Or should I explicitly pass a <code>CanBuildFrom</code> instance? Where do I get these from — for <code>Seq</code>s, <code>Set</code>s and <code>Map</code>s?</p>