Treatment count

flow/i8::count


Inputs

⇥ stream: Stream<i8>

Outputs

↦ count: Stream<u128>


Gives count of elements passing through input stream.

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

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

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