title: How to loop through a map and display only one row if there is matching values
body: <p>I have a map with differnt keys and multiple values.If there is any matching job among different keys,I have to display only one row and grouping code values.</p>
  
  <pre><code>def data = ['Test1':[[name:'John',dob:'02/20/1970',job:'Testing',code:51],[name:'X',dob:'03/21/1974',job:'QA',code:52]],
              'Test2':[name:'Michael',dob:'04/01/1973',job:'Testing',code:52]]
  
  for (Map.Entry&lt;String, List&lt;String&gt;&gt; entry : data.entrySet()) {
      String key = entry.getKey();
      List&lt;String&gt; values = entry.getValue();
      values.eachWithIndex{itr,index-&gt;
          println("key is:"+key);
          println("itr values are:"+itr);
      }
  }
  </code></pre>
  
  <p>Expected Result : <code>[job:Testing,code:[51,52]]</code></p>