Sequence VecCount

std/flow/u128::VecCount


Inputs

value: Stream<Vec<u128>>

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.

ℹ️ This does not count the number of elements present in each vector, see the Size sequence instead.

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

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