We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
This expression comes from the docs at http://argonaut.io/doc/json/
// v6.0.4 scala> jNumber(100).withNumber(_ + 10) res0: argonaut.Json = 110
vs (depending on the exact revision)
scala> jNumber(100).withNumber(_ + 10) <console>:20: error: type mismatch; found : Int(10) required: String jNumber(100).get.withNumber(_ + 10)
or in versions where jNumber(100) returns Option[Json]:
scala> jNumber(100).get.withNumber(_ + 10) <console>:20: error: type mismatch; found : Int(10) required: String jNumber(100).get.withNumber(_ + 10)
git bisect says b405f23 is the first bad commit: "Added JsonLong and JsonDouble cases for JsonNumber #116"
The text was updated successfully, but these errors were encountered:
I'm thinking we might bin this example as it doesn't really apply to the current code.
Sorry, something went wrong.
you can achieve the same result using with Prism, e.g.
Prism
jIntPrism.modify(_ + 10)(jNumber(10)) == jNumber(20)
No branches or pull requests
This expression comes from the docs at http://argonaut.io/doc/json/
vs (depending on the exact revision)
or in versions where jNumber(100) returns Option[Json]:
git bisect says b405f23 is the first bad commit:
"Added JsonLong and JsonDouble cases for JsonNumber #116"
The text was updated successfully, but these errors were encountered: