Created
November 17, 2019 21:43
-
-
Save magdamiu/d35926bb1b5a4f2b1ba7389d5e7fe95f to your computer and use it in GitHub Desktop.
Equality checks
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
val countries = setOf("Java", "JavaScript", "Swift") | |
val neighbors = setOf("Swift", "JavaScript", "Java") | |
println(countries == neighbors) // => true | |
println(countries === neighbors) // => false |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment