Creates a signal similar to Array.reduce
or Rxjs's scan
operator. When the signal is set, the callback function is executed with the prior and currently set value as arguments, returning a new value.
Like other reduce-like functions the value set to the signal does not have to be the same type returned from it.