def doOther() = {
var x = 10
val f = x + (_ : Int)
x = 100
f
}
val foo = doOther()
println(foo(20)) // 120
println(foo(30)) // 130
手机版|Archiver|AGB|Impressum|Datenschutzerklärung|萍聚社区-德国热线-德国实用信息网 |网站地图
GMT+2, 2024-5-10 11:09 , Processed in 0.031327 second(s), 8 queries , MemCached On.
Powered by Discuz! X3.4
© 2001-2023 Discuz! Team.