how to use `str.startsWith` into a `when`? like: `...
# announcements
j
how to use
str.startsWith
into a
when
? like:
Copy code
when(item.name){
"john" -> { // do john stuff }
item.name.startsWith("Mary") -> { // do all maries stuff }
}
is something like this possible?