I have a SignalProducer, ProducerA, that emits values in various intervals. I am trying to collect the latest N values that the SignalProducer emits and create a new producer, ProducerB, that emits an array containing the latest N values.
ProducerB should start emitting values when ProducerA emits the first N values, and then emit a new array each time ProducerA emits a new value.
Can someone help me?