会返回最后一行,不管有没有 return
val abc = "123"
val res = abc.apply{
// this 指 abc 不能有return
}
会返回本身
val abc = "123"
abc.apply{
// it 指 abc
}
没有返回值
val abc = "123"
val res = abc.apply{
// it 指 abc
}
有返回值
val abc = "123"
val edf = with(abc) {
//this 指 abc 不能 return
}
返回地址