fun <T> groupsToList(firstGroup: Group<T>, secondGroup: Group<T>, otherGroups: Array<out Group<T>>): List<List<T>>
Adds the given firstGroup, the secondGroup and the otherGroups into a new List and returns it.
Return
a List containing firstGroup, secondGroup and otherGroups.