Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- case class Score private(raw: Double) extends AnyVal
- object Score {
- def apply(raw: Double)(implicit ev: DummyImplicit): Score = ???
- def mk(raw: Double) = (0 <= raw && raw <= 100) option (new Score(raw))
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement