Ix: Correct .Scan() to use matching behavior#1787
Ix: Correct .Scan() to use matching behavior#1787viceroypenguin wants to merge 1 commit intodotnet:mainfrom
Conversation
The scan operator in most languages includes the seed or first element. This commit updates the Scan operator in System.Interactive to match both Rx.NET and other languages.
|
Hi. This is a breaking change on an established operator. Imagine, suddenly everyone would get an extra item even though they were fine with not having that first item. |
|
Yes, it is a breaking change. However, it corrects the behavior to match every other implementation of the scan operator (both Rx as well as F#, Haskell, etc.), so it restores expectation of how the operator will work. Breaking change means release should only happen on Major Version (v7). |
|
Alternatives: |
|
@akarnokd Any thoughts on the three paths forwards? |
|
Implement the desired operator and behavior in your own library. |
The scan operator in most languages includes the seed or first element. This commit updates the Scan operator in System.Interactive to match both Rx.NET and other languages.
Fixes #1672