Treatment generate

std/flow::generate


Generics

◻ T (any)

Parameters

↳ var data: T

Inputs

⇥ length: Block<u128>

Outputs

↦ stream: Stream<T>


Generate a stream with a given length.

graph LR
     T("generate()")
     B["〈🟨〉"] -->|length| T
         
     T -->|stream| S["… 🟦 🟦 🟦 🟦 🟦 🟦"]
     
     
     style B fill:#ffff,stroke:#ffff
     style S fill:#ffff,stroke:#ffff