Is there a Scala API method to convert a Seq[Option[T]] -> Seq[T]?
You can do this manually via:
seq.filter(_.isDefined).map(_.get)
Wondering if there is a method that does the above in the general API.
Is there a Scala API method to convert a Seq[Option[T]] -> Seq[T]?
You can do this manually via:
seq.filter(_.isDefined).map(_.get)
Wondering if there is a method that does the above in the general API.