I am trying to map a dictionary to a flat array of its values. Rotate this object to[Object]
var objectsDic: [Int : [[Object]]]
I finally found a way that works
objectsDic.map { $0.value }.flatMap { $0 }.flatMap { $0 }
Is there a better way to do this without using two separate flat card calls? Thank!
source
share