tschuchort
07/16/2017, 12:30 PMconcat(List, List): List
. Then, to concat a list of lists, you need to concat each element to the result of the previous concatenation: list.fold(emptyList()) { acc, elem -> concat(acc, elem) }
. A simple map operation only gives you one element at a time