// Include returns the subset values between min and max inclusive. The values must
// be deduplicated and sorted before calling Exclude or the results are undefined.
426170
func (a Values) Include(min, max int64) Values {
	rmin, rmax := a.FindRange(min, max)
	if rmin == -1 && rmax == -1 {
		return nil
	}

	// a[rmin].UnixNano() ≥ min
	// a[rmax].UnixNano() ≥ max

	if rmax < len(a) && a[rmax].UnixNano() == max {
		rmax++
	}

	if rmin > -1 {
		b := a[:rmax-rmin]
		copy(b, a[rmin:rmax])
		return b
	}

	return a[:rmax]
}
291406
func (api *PrivateHostAPI) Include(key string) *PrivateHostAPI {
	api.include(key)
	return api
}
1114262
func (api *DatabaseAPI) Include(key string) *DatabaseAPI {
	api.include(key)
	return api
}
912723
func (c *UsergroupsCreateCall) IncludeCount(includeCount bool) *UsergroupsCreateCall {
	c.includeCount = includeCount
	return c
}
602859
func (api *ProductPrivateHostAPI) Include(key string) *ProductPrivateHostAPI {
	api.include(key)
	return api
}
249824
func (filters Args) Include(field string) bool {
	_, ok := filters.fields[field]
	return ok
}
537526
func (api *LoadBalancerAPI) Include(key string) *LoadBalancerAPI {
	api.include(key)
	return api
}
216681
func (c *UsergroupsDisableCall) IncludeCount(includeCount bool) *UsergroupsDisableCall {
	c.includeCount = includeCount
	return c
}
1005925
func IncludesTx(txHash *chainhash.Hash, block *dcrutil.Block) (int, int8) {
	blockTxs := block.Transactions()

	if tx := TxhashInSlice(blockTxs, txHash); tx != nil {
		return tx.Index(), tx.Tree()
	}
	return -1, -1
}
1150879
func (api *AutoBackupAPI) Include(key string) *AutoBackupAPI {
	api.include(key)
	return api
}
894835
func (c *UsergroupsListCall) IncludeUsers(includeUsers bool) *UsergroupsListCall {
	c.includeUsers = includeUsers
	return c
}
774150
func (b *Bounding) Contains(c Comparable) bool {
	if b == nil {
		return true
	}
	for d := Dim(0); d < Dim(c.Dims()); d++ {
		if c.Compare(b[0], d) < 0 || c.Compare(b[1], d) > 0 {
			return false
		}
	}
	return true
}
1059048
func (ir *PortRange) Contains(value int) bool {
	return value >= ir.Min && value <= ir.Max
}
1061034
func (api *MobileGatewayAPI) Include(key string) *MobileGatewayAPI {
	api.include(key)
	return api
}
243032
func (k *Keyspace) Includes(hash uint64) bool {
	if k == nil {
		return false
	}
	a := hash
	s := k.Start
	e := k.End
	return s <= a && a < e || a < e && e < s || e < s && s <= a
}
1087819
func (api *ServerAPI) Include(key string) *ServerAPI {
	api.include(key)
	return api
}
789066
func (api *SSHKeyAPI) Include(key string) *SSHKeyAPI {
	api.include(key)
	return api
}