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)