Contact: aviboots(AT)netvision.net.il
41,652 questions
54,315 answers
573 users
def map = [name: "Groovy", age: 13, country: "United States", city: "New York"] def f = map.find{it.value == "New York"} println f f = map.find{it.value == "LA"} println f /* run: city=New York null */
def map = [name: "Groovy", age: 13, country: "United States", city: "New York"] def f = map.find{it.value == "New York"}?.value println f f = map.find{it.value == "LA"}?.value println f /* run: New York null */