Let’s say we’ve a stream S1 that generates a random number between 1…100.
There is also another stream S2 that also generates a random number between 1…100.
Is it possible to compose S1 and S2 into another Stream S3 such that S3 emits if s1 + s2 is even? Functionality that I am looking for is similar to the one that is in RxJS.
I know the example is made up, but would like to know if streams in Elixir are composable.