I have a list of list of strings and I want to concatenate all the unique strings into a single (delimited space) string, something that flatMap
allows one to do. However I am confused about the correct usage of the reduce function when concatenating 2 strings.
Input:
val listStrings: List[List[String]] = List(List("this", "is", "the"), List("this", "here"))
Expected Output (the order does not matter):
String("this is the here")