3 ms·
The changing of internal state is not what defines "flow programming". The actual flow of data between concurrently-running processing steps is what defines "f
by yellowapple 7y ago
The changing of internal state is not what defines "flow programming". The actual flow of data between concurrently-running processing steps is what defines "flow programming".
But okay, here's a step with changing state:
step4 = {
previous = [read digit from stdin]
while [read digit from stdin] {
out = previous * digit
previous = digit
write out to stdout
}
}
steps = step1 | step2 | step3 | step4