if you have a function `concat(List, List): List`....
# rx
t
if you have a function
concat(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
👍 1