I\'m trying to represent a function that takes no arguments and returns no value (I\'m simulating the setTimeout function in JavaScript, if you must know.)
c
I do it this way (just don't want to break apply):
case class Thing[A](..., lazy: () => A) {} object Thing { def of[A](..., a: => A): Thing[A] = Thing(..., () => a) }
and call it
Thing.of(..., your_value)