@ronan Yes, in this case, the equivalent Kotlin code is just one line. There are multiple ways that you could write it, of course, but this is the most concise, so most Kotlin programmers would start with this until something more elaborate is needed. —
Dave Leeds 57 secs ago