title: Clean Scala syntax for "Append optional value to Seq if it exists"
body: <p>I often see these two patterns for appending an Optional value to a Seq:</p>
  
  <pre><code>def example1(fooList: Seq[Foo], maybeFoo: Option[Foo]): Seq[Foo]) = {
    if (maybeFoo.isDefined)
      fooList :+ maybeFoo.get
    else
      fooList
  }
  
  def example2(fooList: Seq[Foo], maybeFoo: Option[Foo]): Seq[Foo]) = {
    maybeFoo match {
      case Some(foo) =&gt; fooList :+ foo
      case None =&gt; fooList
    }
  }
  </code></pre>
  
  <p>Both of those methods work, but they seem verbose and ugly. Is there an existing operator or method to do this more naturally/functionally?</p>
  
  <p>Thanks!</p>