"=>" operator in Scala

scala

Solution

it's passing parameter by name. means expression will be evaluated when parameter is accessed.

Problem

I'm new to Scala and has searched over here but didn't find the answer. I'm wondering what is this operator mean "x: => Boolean" in argument context of the function. ``` package scala abstract class Boolean { def && (x: => Boolean): Boolean def || (x: => Boolean): Boolean } ``` I know that `def example(x: Int => Boolean): Boolean` would mean anonymous function that takes Int and return Boolean. However, what it means if argument omitted?

Original source