Treatment filter

flow/f64::filter


Inputs

⇥ select: Stream<bool>
⇥ value: Stream<f64>

Outputs

↦ accepted: Stream<f64>
↦ rejected: Stream<f64>


Filter a f64 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