val name = "abc" println(name.exists(_.isUpper))
Here "_.isUpper" is an anoymous function, which equals to "x => x.isUpper".
Ref: Scala placeholder syntax Anonymous Function Syntax Scala underscore magic
val name = "abc" println(name.exists(_.isUpper))
Here "_.isUpper" is an anoymous function, which equals to "x => x.isUpper".
Ref: Scala placeholder syntax Anonymous Function Syntax Scala underscore magic