scan
accepts
1
input stream,
an accumulator
,
a seed
(optional)
seed
will be used as an initial accumulation accaccumulator
returns a new stream of accumulated values
❚ scan
takes three arguments:
character
to a string
)!
)The accumulator function combines two values:
accumulation
value
As a result, the accumulator returns a new accumulation
.
❚ startWith(seed)
and ❚ scan(f, seed)
.Freelance Developer Advocate. Motion graphics with code. JavaScript and Elm. cedricsoulas.com
Receive my latest news, product updates and programming visualizations. You can unsubscribe at any time.