I have a Sequence of Strings:
val results = Seq("", "one", "two", "three")
With two filter I get:
val emptyStrings: Seq[String] = results.filter( s => s.isEmpty )
val notEmptyStrings: Seq[String] = results.filterNot( s => s.isEmpty )
Is it possible to get with one filter a Map[Boolean, Seq[String]] with:
- key = isEmpty true/false
- values = empty or not empty strings