This is just a poc to get the ball rolling. Here are couple of points:
I added one section per use case (field of a case class, Option, branch of an enumeration, index in a datastructure).
Each code sample is independant from one another
Each section has a technical details part with info for experienced users, e.g. people who know about the type of underlying optics and polymorphic optics. This could be a link to a more advanced doc instead.
I added withDefault, I think it makes sense to cover the most likely usage for Optiontogether. I will add a ticket.
I used the infix version of Focus because it is shorter and more appealing.
This is just a poc to get the ball rolling. Here are couple of points:
withDefault
, I think it makes sense to cover the most likely usage forOption
together. I will add a ticket.Focus
because it is shorter and more appealing.