ursus
09/20/2021, 2:18 AMpublic class Char private constructor() : Comparable<Char> {
public fun toInt(): Int
...
}
First of all, what is this even, and why does it compile? a concrete class with no implementation of methods?
Secondly, does charArratOf('a', 'b', 'c') create 3 instances of Char class?
Or, is there some magicephemient
09/20/2021, 3:01 AMjava.lang.Character, char, char[], etc. as appropriate.ursus
09/20/2021, 3:21 AMcharArrayOf(..) is then equal to the java char[] ?ephemient
09/20/2021, 4:19 AMprimitiveArrayOf()/PrimitiveArray is exactly equivalent to Java's primitive[], and arrayOf<T>()/Array<T> is exactly equivalent to Java's T[]ursus
09/20/2021, 4:48 AMephemient
09/20/2021, 4:51 AMursus
09/20/2021, 5:58 AMCLOVIS
09/20/2021, 8:36 AM