Skip to content

v0.4.1

Compare
Choose a tag to compare
@github-actions github-actions released this 23 Mar 22:01
· 217 commits to refs/heads/master since this release

What's Changed

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)