Kotlin - Control Flow as Expressions
How does Kotlin's when expression handle multiple values listed in a single branch separated by commas?
How does Kotlin's when expression handle multiple values listed in a single branch separated by commas?
when branch separated by commas mean the branch matches if the subject equals any one of those values.when expression checks each branch in order and executes the first branch where the subject matches any of the comma-separated values.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions