Kotlin - Control Flow as Expressions
You want to write a Kotlin
- "Small Int" if the value is an
- "Large Int" if the value is an
- "String" if the value is a
- "Other" for anything else.
Which of the following
when expression that returns:- "Small Int" if the value is an
Int between 1 and 10 inclusive,- "Large Int" if the value is an
Int greater than 10,- "String" if the value is a
String,- "Other" for anything else.
Which of the following
when expressions correctly implements this?