updateAndGet<R, E> method
ZIO<R, E, IList<T> >
updateAndGet<R, E>(
- IList<
T> f(- IList<
T> _
- IList<
inherited
Updates the value using the given function and returns the new value.
Implementation
ZIO<R, E, A> updateAndGet<R, E>(A Function(A _) f) => ZIO(() {
unsafeValueDidChange(f(_value));
return _value;
});