How about this: ``` val (a, b, c) = line.split("\t...
# announcements
d
How about this:
Copy code
val (a, b, c) = line.split("\t") + listOf(null, null, null)
d
how does this work?
d
It's padding the splitted list to contain at least 3 elements. If only one item exists in the line, the list will be
[item, null, null, null]
, leading to
a
being
item
and
b
and
c
being null.