title: Replace flatMap/map chain with for-comprehension
body: <p>I'm trying to use for-comprehension for the following:</p>
  
  <pre><code>val s: Seq[Option[Int]] = //...
  val t: Option[Int] = //...
  
  s.map(sv =&gt; t.flatMap(tv =&gt; sv.map(_ == tv))) 
  </code></pre>
  
  <p>I tried this:</p>
  
  <pre><code>val r: Seq[Option[Boolean]] = for(
    sv &lt;- s;
    tv &lt;- t;
    svv &lt;- sv
  ) yield svv == tv //Seq[Boolean] does not conform to Seq[Option[Boolean]]
  </code></pre>
  
  <p>Is there a way to write in concisely with <code>for-comprehension</code>?</p>