GoodType
Supports the syntax that enables Bad
instances to be created with a specific
Good
type.
- Source:
- Or.scala
class Object
trait Matchable
class Any
Value members
Concrete methods
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") ^
- Value parameters:
- b
the “bad” value
- Returns:
a new
Bad
instance containing the passedb
value- Source:
- Or.scala