Created
January 20, 2020 04:23
-
-
Save emmettna/5491bbb8cba152c545ebf60e7b7e9ce2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
final case class IntegerParser(value: Int) | |
val prasedInt = IntegerPraser(value = 1) | |
parsedInt match { | |
case IntegerParser(value) => value.toString | |
case _ => "Invalid Int" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment