Contact: aviboots(AT)netvision.net.il
39,846 questions
51,767 answers
573 users
def map = [name: "Groovy", age: 13, country: "United States"] map["key"] = "value" map.each{key, value -> println "${key}:${value}"} /* run: name:Groovy age:13 country:United States key:value */
def map = [name: "Groovy", age: 13, country: "United States", city: "New York"] map.put("key", "value") println(map) /* run: [name:Groovy, age:13, country:United States, city:New York, key:value] */