You can store the result of split as a list, and t...
# announcements
i
You can store the result of split as a list, and then use
getOrNull
function to get the optional last column value:
Copy code
val columns = list.split("\t")
val (a, b) = columns
val country = columns.getOrNull(2)