How a function that return an Int can be part of if statement?

后端 未结 0 1224
自闭症患者
自闭症患者 2020-12-03 23:54

I have define a new function (please don\'t refer to the logic, only if it is necessary):

 operator fun Int?.compareTo(other: Int): Int
        {
                     


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题