Sequence VecCount

std/flow/void::VecCount


Inputs

iter: Stream<Vec<void>>

Outputs

↦ count: Stream<u128>


Gives count of elements passing through input stream.

This count increment one for each elements within the iter 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["[🟦 🟦][🟦][🟦 🟦 🟦]…"] -->|iter| T
    
    T -->|count| P["1️⃣ 2️⃣ 3️⃣ …"]

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