That’s call by name: https://www.scala-lang.org/files/archive/spec/2.13/04-basic-declarations-and-definitions.html#by-name-parameters
It works like parameterless function () => T
but you don’t need to write the ()
.
3 Likes