Generic function for all number-like values?

前端 未结 0 858
生来不讨喜
生来不讨喜 2020-12-29 15:33

I\'d like to write a generic Kotlin function that works with arbitrary types, as long as they support some basic numeric operations, such as comparison and addition. Somethi

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