Do<A> function

Option<A> Do<A>(
  1. DoFunction<A> f
)

Implementation

Option<A> Do<A>(DoFunction<A> f) {
  try {
    return some(f(_doAdapter));
  } on None catch (_) {
    return kNone;
  }
}