What is the use case for flatMap vs map in kotlin
问题 in https://try.kotlinlang.org/#/Kotlin%20Koans/Collections/FlatMap/Task.kt it has sample of using flatMap and map seems both are doing the same thing, is there a sample to show the difference of using flatMap and map ? the data type: data class Shop(val name: String, val customers: List<Customer>) data class Customer(val name: String, val city: City, val orders: List<Order>) { override fun toString() = "$name from ${city.name}" } data class Order(val products: List<Product>, val isDelivered: