Created
July 10, 2019 20:32
-
-
Save mottet-dev/66f274d99260dc92888b1490075134b0 to your computer and use it in GitHub Desktop.
Go test - AreSlicesEqual
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
func AreSlicesEqual(a, b []int) bool { | |
if len(a) != len(b) { | |
return false | |
} | |
for _, i := range a { | |
if !DoesSliceIncludesInt(i, b) { | |
return false | |
} | |
} | |
return true | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment