Created
October 1, 2020 20:00
-
-
Save SergeyTLV/10c11351b7fd491aed54a2151abdc4b6 to your computer and use it in GitHub Desktop.
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 check<T: Equatable>(_ a: [T], _ x: T) -> Bool { | |
// Your code here | |
if a.contains(x) { | |
return true | |
}else{ | |
return false | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment