mattmoore
06/14/2020, 4:37 PMdata class Person(val firstName: String, val lastName: String)
val person = Person("Matt", "Moore")
fun case(arg: Any?): Any? = arg
val result = when (person) {
case(Person("Matt", "Moore")) -> "Matched"
else -> "Not matched"
}