how would you flatten ```val x = List<Map<L...
# arrow
f
how would you flatten
Copy code
val x = List<Map<Long, Set<Foo>>>
to
Copy code
val y = Map<Long, Set<Foo>>
n
Are you searching for something like that ?
Copy code
val y = x.reduce { mapA, mapB -> mapA.combine(mapB, Set<Foo>::plus) }
To do so, you need to
import arrow.core.combine