Defining a Recursive Stream in Effect Typescript

Hi, is it possible to define a stream recursively?
something like
o[0] = s[0]
o[t] = s[t] + o[t-1]

where s is some stream and o is the recursively defined stream.
Was this page helpful?