for each loop in groovy February 21, 2023 by Tarik as simple as: tmpHM.each{ key, value -> doSomethingWithKeyAndValue key, value }