# How I replaced a nested for loop with flatMap How I transformed an array of arrays using flatMap instead of nested for loops. [https://monicagranbois.com/blog/swift/swift-flatmap/](https://monicagranbois.com/blog/swift/swift-flatmap/)