我正在关注 scala 教程。
在函数字面量中,它具有以下符号:
(_ : *type*) => println("pressed")
例如,
(_ : Int) => println("pressed")
在这种表示法中,我无法理解(_ : type )的含义。
我正在关注 scala 教程。
在函数字面量中,它具有以下符号:
(_ : *type*) => println("pressed")
例如,
(_ : Int) => println("pressed")
在这种表示法中,我无法理解(_ : type )的含义。