juliocbcotta
str.startsWith
when
when(item.name){ "john" -> { // do john stuff } item.name.startsWith("Mary") -> { // do all maries stuff } }