v0.4.1
·
217 commits
to refs/heads/master
since this release
What's Changed
- add syntax for typeclasses methods (#188) @sagifogel
import proptics.syntax.all._
import proptics.instances.all._
case class Oscars(bestPicture: Map[Int, String])
Oscars(Map(1975 -> "The Godfather: Part II", 2008 -> "No Country for Old Men"))
.lens(_.bestPicture)
.index(1975)
.suffix(": Part II")
.viewOrModify
// val res0: Either[Oscars,String] = Right(The Godfather)