For anyone else who might stumble upon the same question:

It is called a by-name parameter and it is only evaluated if it is used in the function body.

This link explains the use of this notation in detail.

Also refer: Scala Documentation

Related Query

More Query from same tag