func (r RRs) Partition(unique bool) (parts Parts) {
	parts = make(map[Type]RRs, len(r))
	for _, v := range r {
		parts[v.Type] = append(parts[v.Type], v)
	}
	if unique {
		for typ, part := range parts {
			part.Unique()
			parts[typ] = part
		}
	}
	return
}
// Partition groups resource record of the same type.
// If unique == true then the result parts are processed by Unique.
Partition groups resource record of the same type.
If unique == true then the result parts are processed by Unique.
// Partition groups resource record of the same type . // If unique == true then the result parts are processed by Unique .
func (r RRs) Partition(unique bool) (parts Parts) {
	parts = make(map[Type]RRs, len(r))
	for _, v := range r {
		parts[v.Type] = append(parts[v.Type], v)
	}
	if unique {
		for typ, part := range parts {
			part.Unique()
			parts[typ] = part
		}
	}
	return
}
func ( r RRs ) Partition ( unique bool ) ( parts Parts ) { parts = make ( map [ Type ] RRs , len ( r ) ) for _ , v := range r { parts [ v . Type ] = append ( parts [ v . Type ] , v ) } if unique { for typ , part := range parts { part . Unique ( ) parts [ typ ] = part } } return }
Partition groups resource record of the same type.
Partition groups resource record of the same type .