Use this tag for questions addressing eta expansion in Scala. Also add the Scala-tag to your question
Eta Expansion is part of the language scala. There is a well-answered question on SO explaining eta expansion. It refers also to the docs which explain:
The expression
e _
is well-formed ife
is of method type or ife
is a call-by-name parameter. Ife
is a method with parameters,e _
representse
converted to a function type by eta expansion. Ife
is a parameterless method or call-by-name parameter of type =>T,e _
represents the function of type () => T, which evaluatese