There is a codePoints()
methods in java.lang.CharSequence which returns an IntStream and I can call toArray to collect it into a list. It looks like I can get the number of code points of a kotlin.String but how do I enumerate/collect them?
I can explicitly convert it to java.lang.CharSequence but then I get a warning.