purereborn
02/13/2018, 10:18 PMList<String> parts = Lists.newArrayList(title.split("/"));
became: val parts = Lists.newArrayList(*title.split("/".toRegex()).dropLastWhile { it.isEmpty() }.toTypedArray())
I get the dropLastWhile { it.isEmpty() }.toTypedArray() is to remove any null String from the final List but is there a shorter way to write that?