code: func NewRanges(ranges ...Range) Ranges {
  	var result Ranges
  	for _, r := range ranges {
  		result = result.AddRange(r)
  	}
  	return result
  }
docs: // NewRanges constructs a new Ranges object comprising the provided ranges.