Skip to content

v0.4.2

Compare
Choose a tag to compare
@github-actions github-actions released this 05 Apr 19:29
· 208 commits to refs/heads/master since this release

What's Changed

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