Skip to content

either 1.2

Choose a tag to compare

@h908714124 h908714124 released this 09 Jul 09:45
· 60 commits to main since this release
  • Rename accept to ifPresentOrElse. This is a more familiar name.
  • Remove acceptRight(Consumer). It can be expressed as getRight().ifPresent(Consumer).
  • Remove acceptLeft(Consumer). It can be expressed as getLeft().ifPresent(Consumer).
  • Performance improvement: map, flatMap and filter return the same Either instance, if invoked on a Left. Same applies to their left-side mirror methods, if invoked on a Right.