Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Treatment chain

std/flow::chain


Generics

◻ T (any)

Inputs

⇥ first: Stream<T>
⇥ second: Stream<T>

Outputs

↦ chained: Stream<T>


Chain two streams.

graph LR
     T("chain()")
     A["🟨 🟨 🟨 🟨 🟨 🟨"] -->|first| T
     B["… 🟪 🟪 🟪"] -->|second| T
     
     T -->|chained| O["… 🟪 🟪 🟪 🟨 🟨 🟨 🟨 🟨 🟨"]

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