Treatment flatten

std/flow/vec::flatten


Generics

◻ T (any)

Inputs

⇥ vector: Stream<Vec<T>>

Outputs

↦ value: Stream<T>


Flatten a stream of vector.

All the input vectors are turned into continuous stream of scalar values, keeping order.

graph LR
     T("flatten()")
     B["[🟦 🟦][🟦][🟦 🟦 🟦]"] -->|vector| T
     
     T -->|value| O["🟦 🟦 🟦 🟦 🟦 🟦"]

     style B fill:#ffff,stroke:#ffff
     style O fill:#ffff,stroke:#ffff