Closed asubb closed 4 years ago
Sometimes it is required to convert one stream to another using custom functions. For example might be valuable to convert Sample -> Window<Sample> or backwards.
Sample -> Window<Sample>
The potential API is:
Stream<Sample>().map<Window<Sample>> { Window(elements = repeat(10) { it }) } Stream<Window<Sample>>().map<Sample> { it.elements.sum() / it.elements.count() }
Sometimes it is required to convert one stream to another using custom functions. For example might be valuable to convert
Sample -> Window<Sample>
or backwards.The potential API is: