v0.4.2
·
208 commits
to refs/heads/master
since this release
What's Changed
- addition of syntax to OptionOptics/EitherOptics (#192) @sagifogel
import proptics.syntax.all._
import proptics.instances.all._
List(Some("Some"), None, Some(" Of These Days"))
.foldable
.some
.view
// val res0: String = Some Of These Days
import proptics.syntax.all._
import proptics.instances.all._
List(Some("some"), None, Some(" Of These Days"), None, None)
.foldable
.none
.length
// val res0: Int = 3
import proptics.syntax.all._
import proptics.instances.all._
List(Right("That's"), Left(true), Right(" right"), Left(false))
.foldable
.right
.view
// val res0: String = That's right
import proptics.syntax.all._
import proptics.instances.all._
List(Right(true), Left("That's"), Right(true), Left(" wrong"))
.foldable
.left
.view
// val res0: String = That's wrong