Creating Feedback Loops in Effect Streams
What is the best way to create feedback loops in effect streams?
if I have a stream Sa = [1,2,3,4,...]
how can I express something like the attached circuit?
things are well defined because at index 0 the value of delaying any stream is 0.
I tried using queues, but I'm not getting anywhere, would appreciate some pointers.
my example is for addition, but eventually I will need something that works generically over arbitrary operations.
if I have a stream Sa = [1,2,3,4,...]
how can I express something like the attached circuit?
things are well defined because at index 0 the value of delaying any stream is 0.
I tried using queues, but I'm not getting anywhere, would appreciate some pointers.
my example is for addition, but eventually I will need something that works generically over arbitrary operations.

