map<O2> method
Implementation
Conveyor<F, O2> map<O2>(O2 f(O o)) =>
interpret((h, t) => tryOrDie(() => produce(f(h), t.map(f))),
(req, recv) => consume(req, (ea) => recv(ea).map(f)),
halt);
Conveyor<F, O2> map<O2>(O2 f(O o)) =>
interpret((h, t) => tryOrDie(() => produce(f(h), t.map(f))),
(req, recv) => consume(req, (ea) => recv(ea).map(f)),
halt);