cata<B, B2 extends B> method

B cata<B, B2 extends B>(
  1. B ifNone(),
  2. B2 ifSome(
    1. A a
    )
)

Implementation

B cata<B, B2 extends B>(B ifNone(), B2 ifSome(A a)) => fold(ifNone, ifSome);