diff --git a/Kotlin Koans/Collections/Fold/Solution.kt b/Kotlin Koans/Collections/Fold/Solution.kt index 85e18ae..213e45f 100644 --- a/Kotlin Koans/Collections/Fold/Solution.kt +++ b/Kotlin Koans/Collections/Fold/Solution.kt @@ -6,6 +6,6 @@ fun Shop.getSetOfProductsOrderedByEveryCustomer(): Set { /**/val allProducts = customers.flatMap { it.orders.flatMap { it.products }}.toSet() return customers.fold(allProducts, { orderedByAll, customer -> - orderedByAll.intersect(customer.orders.flatMap { it.products }.toSet()) + orderedByAll.intersect(customer.orders.flatMap { it.products }) })/**/ } \ No newline at end of file