lastOr method

Conveyor<F, O> lastOr(
  1. O o
)

Implementation

Conveyor<F, O> lastOr(O o) =>
    interpret((h, t) => t.lastOr(h),
        (req, recv) => consume(req, (ea) => recv(ea).lastOr(o)),
        (err) => err == End ? produce(o) : halt(err));