<PackageReference Include="ReactiveUI.Primitives.Core" Version="7.3.0" />

ReactiveUI.Primitives.Signals.MapWithSignal<TSource, TState, TResult>

public sealed class MapWithSignal<TSource, TState, TResult> : IRequireCurrentThread<TResult>, IObservable<TResult>
Projects each source value into a new form using a caller-supplied state value, without allocating a per-value closure: the state is stored on the sink and passed to the selector for each element.
public MapWithSignal(IObservable<TSource> source, TState state, Func<TState, TSource, TResult> selector)

Projects each source value into a new form using a caller-supplied state value, without allocating a per-value closure: the state is stored on the sink and passed to the selector for each element.

Determines whether the sink must subscribe on the current thread.

public IDisposable Subscribe(IObserver<TResult> observer)

Subscribes the observer to the projected sequence.