Created
February 10, 2015 19:29
-
-
Save arled/cb01c1e2ee9e9013efa6 to your computer and use it in GitHub Desktop.
Check array for given string
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
var elements = ["apple", "banana", "cherry"] | |
if contains(elements, "banana") { | |
println("yep") | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment