live/solutions/operatoren.groovy aktualisiert

main
Ileyan Al Jaaf 2024-06-10 19:01:29 +02:00
parent 76b60749bd
commit 26b09cb7bf
1 changed files with 2 additions and 0 deletions

View File

@ -1,4 +1,6 @@
def words = ["Groovy", "ist", "cool"] def words = ["Groovy", "ist", "cool"]
def numbers = [1, 2, 3, 4, 5]
def lengths = words*.length() def lengths = words*.length()
def squares = numbers*.multiply(numbers) def squares = numbers*.multiply(numbers)