I have a vector of option of List of Tuple like
val x = Vector(
Some(List(("x",2))),
Some(List(("x",2),("y",3))),
None,
Some(List(("x",2),("z",2))),
Some(List(("x",2),("z",2))),
None)
How to get the list from the above vector
Updated:
The final purpose is to get the total count of element in the list (we have three element only x or y or z).
like total count of x would return 8 and total count of y would return 3 and total count of z would return 4
like
val totalx = x.flatten.filter ....