Yet another possibility, a lot shorter and clearer...
# announcements
k
Yet another possibility, a lot shorter and clearer:
Copy code
val long = maxOf(first, second, compareBy{it.size})
val short = minOf(first, second, compareBy{it.size})
👍 1