I'm a bit stuck here, creating a map like this i straight forward

```
def map = [[group="group1",member="groover"],
           [group="group1",member="jason"],
           [group="group2",member="groover"],
           [group="group2",member="jason"]
]

```

iterating over it and printing..

```
map.each{
    println it
}

```

**.. (DESIRED) OUTPUT:**

```
[group1, groover]
[group1, jason]
[group2, groover]
[group2, jason]

```

**Now, how to create a similar map dynamically?**

```
def dynamicMap = [:]

    for(int i=1;i<3;i++){  // This is not working particulary well...
        dynamicMap.group= "group$i"
        dynamicMap.member= "groover"
        dynamicMap.member= "jason"
    }

dynamicMap.each{
    println it
}

```

**(INCORRECT) OUTPUT**

```
group=group2
member=jason

```