-
Notifications
You must be signed in to change notification settings - Fork 411
New issue
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
Documentation of BinaryCodecs #2793
Conversation
Before merging this PR, please merge this one: #2785 |
@987Nabil |
for { | ||
book <- req.body.to[Book].catchAll(_ => ZIO.fail(Response.badRequest("unable to deserialize the request"))) | ||
books <- ZIO.service[Ref[List[Book]]] | ||
_ <- books.updateAndGet(_.appended(book)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
try instead _ :+ book
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you! Fixed!
I'm curious, what is the difference between :+
and appended
?
No description provided.