You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Inconsistency in marble illustration for Flux.scan #4042
The current marble illustrations for Flux.scan with initial value and initial value supplier seem misleading to me, as the behaviour of both operators is very similar.
On one hand, scan.svg shows no initial value before the processing of the stream, which is inconsistent with what the docstring says.
On the other hand, scanWith.svg has an initial value, but wierdly ignores it in the second iteration (green marble), which is also inconsistent with the docstring.
I hope I got this correctly, if not thank you for correcting my understanding.
Improvement Suggestion
I think both illustrations should be similar, with an initial value represented as the white square, followed by the accumulation with input flux items.
Additional context
I would gladly propose the change myself, but I don't know where to find the base material to generate those marble SVGs.
Hi, I'd like to take this on. I checked the current scan.svg and scanWith.svg, and the inconsistency described here is still present.
Following docs/svg/README.md, I'd update both diagrams so that the initial value and subsequent accumulated values are represented consistently with the operators' behavior, preserve the existing marble conventions, run the recommended svgo optimization, and visually verify the optimized output. Is that the intended scope?
Activity
chemicL commentedon Nov 14, 2025
Hi, the marble diagrams guide is https://github.com/reactor/reactor-core/blob/main/docs/svg/README.md?plain=1 - contribution would be welcome!
henriquejsza commentedon Aug 27, 2026
Hi, I'd like to take this on. I checked the current
scan.svgandscanWith.svg, and the inconsistency described here is still present.Following
docs/svg/README.md, I'd update both diagrams so that the initial value and subsequent accumulated values are represented consistently with the operators' behavior, preserve the existing marble conventions, run the recommendedsvgooptimization, and visually verify the optimized output. Is that the intended scope?AzazelSensei commentedon Sep 8, 2026
Opened #4386