Treatment filter
flow/vec/u64::filter
Inputs
⇥ select:
Stream<bool>
⇥ value:
Stream<Vec<u64>>
Outputs
↦ accepted:
Stream<Vec<u64>>
↦ rejected:
Stream<Vec<u64>>
Filter a Vec<u64>
stream according to bool
stream.
ℹ️ If both streams are not the same size nothing is sent through accepted nor rejected.
graph LR T("filter()") V["…[🟪 🟪 🟪][🟨 🟨][🟨][🟪 🟪][🟨 🟨 🟨]…"] -->|value| T D["… 🟩 🟥 🟥 🟩 🟥 …"] -->|select|T T -->|accepted| A["…[🟪 🟪 🟪][🟪 🟪]…"] T -->|rejected| R["…[🟨 🟨][🟨][🟨 🟨 🟨]…"] style V fill:#ffff,stroke:#ffff style D fill:#ffff,stroke:#ffff style A fill:#ffff,stroke:#ffff style R fill:#ffff,stroke:#ffff