Why are Java Streams once-off?
Unlike C#’s IEnumerable, where an execution pipeline can be executed as many times as we want, in Java a stream can be ‘iterated’ only once. Any call to a terminal operation closes the stream, rendering it unusable. This ‘feature’ takes away a lot of power. I imagine the reason for this is not technical. What … Read more