,System.Func{--0,--0},System.Func{--0,--1})}
Signal.Unfold(TState, Func, Func, Func) method¶
Defined in
Type: Signal
Namespace: ReactiveUI.Primitives.Reactive.Signals
Assembly: ReactiveUI.Primitives.Reactive.dll
Applies to
net10.0, net10.0-browserwasm1.0, net10.0-desktop1.0, net9.0, net9.0-browserwasm1.0, net9.0-desktop1.0, net8.0, net8.0-ios17.5, net8.0-maccatalyst17.5, net8.0-macos14.2, net8.0-macos14.5, net8.0-tvos17.2, netstandard2.1, net462, net481
public static IObservable<TResult> Unfold<TState, TResult>(TState initialState, Func<TState, bool> condition, Func<TState, TState> iterate, Func<TState, TResult> resultSelector)
Summary: Unfolds state into a finite signal.
Type parameters
| Name | Description |
|---|---|
TState | The type of the state. |
TResult | The type of the result. |
Parameters
| Name | Type | Description |
|---|---|---|
initialState | TState | The initial state. |
condition | Func | The condition that determines whether to continue. |
iterate | Func | The function that advances the state. |
resultSelector | Func | The function that produces the result from the state. |
Returns: IObservable