// Remove all elements in drop from list
Remove all elements in drop from list
// Remove all elements in drop from list
func drop(list []string, drop []string) []string {
	dd := map[string]struct{}{}
	for _, d := range drop {
		dd[d] = struct{}{}
	}
	res := []string{}
	for _, x := range list {
		if _, f := dd[x]; !f {
			res = append(res, x)
		}
	}
	return res
}
func drop ( list [ ] string , drop [ ] string ) [ ] string { dd := map [ string ] struct { } { } for _ , d := range drop { dd [ d ] = struct { } { } } res := [ ] string { } for _ , x := range list { if _ , f := dd [ x ] ; ! f { res = append ( res , x ) } } return res }
Remove all elements in drop from list
Remove all elements in drop from list