From b02418e44875a7054882f5de9dbfa26544be5284 Mon Sep 17 00:00:00 2001 From: Dmytro Makhanok Date: Fri, 25 Jul 2025 15:11:51 +0200 Subject: [PATCH] done --- src/main/kotlin/mate/academy/StoreService.kt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/main/kotlin/mate/academy/StoreService.kt b/src/main/kotlin/mate/academy/StoreService.kt index 7a053df..2126944 100644 --- a/src/main/kotlin/mate/academy/StoreService.kt +++ b/src/main/kotlin/mate/academy/StoreService.kt @@ -3,6 +3,10 @@ package mate.academy class StoreService { // Function to update the store's stock with `with` fun updateStoreStock(store: Store, extraShoes: Int, extraShirts: Int, extraJackets: Int) { - // TODO: implement + with(store) { + shoes += extraShoes + shirts += extraShirts + jackets += extraJackets + } } }