asUnit method

Effect<Unit, E> asUnit()

Discard the success value while preserving the typed failure.

Implementation

Effect<Unit, E> asUnit() {
  return map<Unit>((_) => unit);
}