Hi, why is spread operator not work with split(): ...
# getting-started
h
Hi, why is spread operator not work with split(): https://pl.kotl.in/5xrsPYB2c
a
If the vararg is of primitive type, you have to use the corresponding primitive array type, in this case
charArrayOf()
.
h
Wow nice. It works. Thank you very much @Albert Chang
👍 1
e
there are some issues with generics, e.g. https://youtrack.jetbrains.com/issue/KT-9495 but other than that, yes you just need the right type array