Let\'s create a value for the sake of this question:
val a = 1 :: Nil
now, I can demonstrate that the anonymous functions can be written in
You should use identity function for this use case.
identity
a.map(identity)
identity is defined in scala.Predef as:
implicit def identity[A](x: A): A = x