Skip to content

Instantly share code, notes, and snippets.

@emmettna
Created January 20, 2020 04:23
Show Gist options
  • Save emmettna/5491bbb8cba152c545ebf60e7b7e9ce2 to your computer and use it in GitHub Desktop.
Save emmettna/5491bbb8cba152c545ebf60e7b7e9ce2 to your computer and use it in GitHub Desktop.
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