I have an
and I want to trasnf
that contains only the element of type
, which means all the element for which the method
. By now, I found the following solution.
Warning:(11, 36) match may not be exhaustive.
rows.filter(row => row.isFailure)
case Failure(e) => // Do something...
It would fail on the following input: Success(_)
Is there any method to obtain the same result without incurring in the compilation warning?
Thanks a lot.