From 26b09cb7bf8e26633522653d34b76d595f066d96 Mon Sep 17 00:00:00 2001 From: Ileyan Al Jaaf <3003916@stud.hs-mannheim.de> Date: Mon, 10 Jun 2024 19:01:29 +0200 Subject: [PATCH] live/solutions/operatoren.groovy aktualisiert --- live/solutions/operatoren.groovy | 2 ++ 1 file changed, 2 insertions(+) diff --git a/live/solutions/operatoren.groovy b/live/solutions/operatoren.groovy index 87f5353..f9eb483 100644 --- a/live/solutions/operatoren.groovy +++ b/live/solutions/operatoren.groovy @@ -1,4 +1,6 @@ def words = ["Groovy", "ist", "cool"] +def numbers = [1, 2, 3, 4, 5] + def lengths = words*.length() def squares = numbers*.multiply(numbers)