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 pass

std/flow::pass


Generics

◻ T (any)

Parameters

↳ var cond: bool

Inputs

⇥ stream: Stream<T>

Outputs

↦ passed: Stream<T>


Pass stream under condition.

If if is true, pass the stream, else closes it.