fold<Z> abstract method

Z fold<Z>(
  1. Z onNone(),
  2. Z onSome(
    1. A a
    )
)

Applies onNone if this is a None or onSome if this is a Some of A

Implementation

Z fold<Z>(Z Function() onNone, Z Function(A a) onSome);