Treatment count

flow/vec/u128::count


Inputs

⇥ stream: Stream<Vec<u128>>

Outputs

↦ count: Stream<u128>


Gives count of elements passing through stream.

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

ℹ️ The count is independant from vector sizes.

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