The option is implicitly converted to a sequence with 1 or 0 elements, so the following works:
scala> val opt = Some("a") opt: Some[String] = Some(a) scala> val nope = None nope: None.type = None scala> val seq = Seq("a", "b", "c") seq: Seq[String] = List(a, b, c) scala> seq ++ opt res3: Seq[String] = List(a, b, c, a) scala> seq ++ nope res4: Seq[String] = List(a, b, c)
source share