Skip to content

Instantly share code, notes, and snippets.

@MagicalMeghan
Last active April 13, 2020 18:35
Show Gist options
  • Save MagicalMeghan/50423921e886a5956ca14670a38781e9 to your computer and use it in GitHub Desktop.
Save MagicalMeghan/50423921e886a5956ca14670a38781e9 to your computer and use it in GitHub Desktop.
<!-- 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