mattmoore
06/14/2020, 4:38 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(_, "Moore")) -> "Matched"
else -> "Not matched"
}