If you wish to receive the result of Monad[] not in an option
value, declare an implicit value of Default[] of the result
type. For example, if you wish to receive an Engine rather
than an Option[Engine], declare an implicit value of
Default[Engine].
implicitval defaultEngine: Default[Engine] =
Default[Engine] { /* a default value : Engine */ }
A default value provider.
If you wish to receive the result of
Monad[]
not in an option value, declare an implicit value ofDefault[]
of the result type. For example, if you wish to receive anEngine
rather than anOption[Engine]
, declare an implicit value ofDefault[Engine]
.