Last active
April 13, 2020 18:35
-
-
Save MagicalMeghan/50423921e886a5956ca14670a38781e9 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
<!-- Copyright 2019 Google LLC. | |
SPDX-License-Identifier: Apache-2.0 --> | |
data class Singer(val name: String) | |
fun main() { | |
val choir = Choir() | |
val singerMeghan = Singer("Meghan") | |
choir += singerMeghan | |
if(singerMeghan in choir){ | |
println("Meghan is a part of the choir!") | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment