Is there a way to convert a  List<Set<String>> mainList to a plain List, without iterating over elements?
For example this one has value:
mainList = {ArrayList@705}  size = 2
 0 = {HashSet@708}  size = 3
  0 = "A2"
  1 = "A1"
  2 = "A3"
 1 = {HashSet@709}  size = 3
  0 = "A6"
  1 = "A5"
  2 = "A7"
I would like to have a new list like so:
list = A2,A1,A3, A6, A5, A7
 
     
     
    