Skip to content

Inconsistency in marble illustration for Flux.scan #4042

Open

Description

@lexum-letardv

Documentation Issue

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.

Activity

  1. chemicL commented on Nov 14, 2025

    @chemicL
    Member
  2. added
    help wanted
    on Nov 14, 2025
  3. henriquejsza commented on Aug 27, 2026

    @henriquejsza

    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?

  4. AzazelSensei commented on Sep 8, 2026

    @AzazelSensei

    Opened #4386

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedtype/documentation

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions