Jan
06/05/2022, 12:34 PMval tags = "".split(" ")
println(tags.size) //prints 1
Johann Pardanaud
06/06/2022, 9:10 AMsplit
method simply returns the same string, non-splitted
it doesn’t matter if you’re doing this on an empty string or not
val tags = "".split(" ")
println(tags.size) //prints 1
val tags = "test".split(" ")
println(tags.size) //prints 1