Sequence Count

std/flow/u8::Count


Inputs

value: Stream<u8>

Outputs

↦ count: Stream<u128>


Gives count of elements passing through input stream.

This count increment one for each elements within the value stream, starting at 1.

graph LR
    T("Count()")
    V["🟦 🟦 🟦 …"] -->|value| T
    
    T -->|count| P["1️⃣ 2️⃣ 3️⃣ …"]

    style V fill:#ffff,stroke:#ffff
    style P fill:#ffff,stroke:#ffff