Factory method for Bad
instances whose Good
type is specified
by the type parameter of this GoodType
.
Factory method for Bad
instances whose Good
type is specified
by the type parameter of this GoodType
.
This method enables this syntax:
Good[Int].orBad("oops") ^
the “bad” value
a new Bad
instance containing the passed b
value
Supports the syntax that enables
Bad
instances to be created with a specificGood
type.