While expression body syntax can let you skip the return type, sometimes the return type that Kotlin infers from your expression is not what you want. In that case, just add the return type to the function, where it normally would appear after the parameter list.

You can learn more about this in:
Run Edit