updateAndGet<R, E> method

ZIO<R, E, IList<T>> updateAndGet<R, E>(
  1. IList<T> f(
    1. IList<T> _
    )
)
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;
    });