(haystack []string, needle string)
| 7 | } |
| 8 | |
| 9 | func Contains(haystack []string, needle string) bool { |
| 10 | for _, v := range haystack { |
| 11 | if v == needle { |
| 12 | return true |
| 13 | } |
| 14 | } |
| 15 | return false |
| 16 | } |
| 17 | |
| 18 | func RemoveDuplicates(arr []string) []string { |
| 19 | newArr := []string{} |
no outgoing calls
no test coverage detected