Treatment fit

flow/i64::fit


Inputs

⇥ pattern: Stream<void>
⇥ value: Stream<i64>

Outputs

↦ fitted: Stream<i64>


Fit a stream of i64 into a pattern.

ℹ️ If some remaining values doesn't fit into the pattern, they are trashed.

graph LR
     T("fit()")
     A["… 🟨 🟨 🟨 🟨 🟨 🟨"] -->|value| T
     B["🟦 🟦 🟦 🟦"] -->|pattern| T
     
     T -->|fitted| O["🟨 🟨 🟨 🟨"]

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