dmitry.petrov
when (val str = ...) { "foo" -> foo() _ if str.contains("bar") -> bar() _ if "baz" in str -> baz() }