From aa5f2cfe07e767a6253f118b0d1ab491b6a433db Mon Sep 17 00:00:00 2001 From: jekag Date: Fri, 23 Jan 2026 17:29:41 +0200 Subject: [PATCH] create hw --- 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 + } } }