IT评测·应用市场-qidao123.com技术社区's Archiver
论坛
›
物联网
› kotlin扩展函数
盛世宏图
发表于 2025-4-14 22:29:50
kotlin扩展函数
Kotlin 的扩展函数(extension function)。
fun MutableList<Int>.swap(index1: Int, index2: Int) {
val tmp = this
this = this
this = tmp
}
页:
[1]
查看完整版本:
kotlin扩展函数