1 input stream,
seedwill be used as an initial accumulation acc
returns a new stream of accumulated values
❚ scan takes three arguments:
The accumulator function combines two values:
As a result, the accumulator returns a
❚ scan(f, seed).
Receive my latest news, product updates and programming visualizations. You can unsubscribe at any time.