func (src List) Exclude(excluded List) List {
	ignore := make(map[version.Binary]bool, len(excluded))
	for _, tool := range excluded {
		ignore[tool.Version] = true
	}
	var result List
	for _, tool := range src {
		if !ignore[tool.Version] {
			result = append(result, tool)
		}
	}
	return result
}
// Exclude returns the tools in src that are not in excluded.
Exclude returns the tools in src that are not in excluded.
// Exclude returns the tools in src that are not in excluded .
func (src List) Exclude(excluded List) List {
	ignore := make(map[version.Binary]bool, len(excluded))
	for _, tool := range excluded {
		ignore[tool.Version] = true
	}
	var result List
	for _, tool := range src {
		if !ignore[tool.Version] {
			result = append(result, tool)
		}
	}
	return result
}
func ( src List ) Exclude ( excluded List ) List { ignore := make ( map [ version . Binary ] bool , len ( excluded ) ) for _ , tool := range excluded { ignore [ tool . Version ] = true } var result List for _ , tool := range src { if ! ignore [ tool . Version ] { result = append ( result , tool ) } } return result }
Exclude returns the tools in src that are not in excluded.
Exclude returns the tools in src that are not in excluded .