I have the following structure:
val s1 = Seq(1,2,3,4,5)
val s2 = Seq()
val s3 = Seq(6,7,8,9)
val seq = Seq(s1,s2,s3)
What I need is to validate that all the sequences in seq have at least one element. I tried to accomplish this with filter, but couldn't, any ideas?