Created
June 15, 2017 06:52
-
-
Save patryk-scalac-io/d28e3a573274734824fe0c4a1cdbf217 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
val someJson: Json = JStr("someString") | |
someJson match { | |
case JStr(s) => JStr(s.toUpperCase) | |
case anythingElse => anythingElse | |
} | |
// res1: com.example.Json = JStr(SOMESTRING) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment