'when' is a powerful expression that matches its argument against all branches sequentially.
← Kotlin theorytheory 0/50 · 0%
Fundamentals · easy
6. When Expression
Replacement for switch-case.
Check your understanding
1. Does 'when' need a break?
2. Can 'when' return a value?