as<B> method

ZIO<R, E, B> as<B>(
  1. B b
)

Maps the success value of this ZIO to the given constant b.

Implementation

ZIO<R, E, B> as<B>(B b) => map((_) => b);