Non-terminal forEach() in a stream? : <p>Sometimes when processing a Java stream() I find myself in need of a non-terminal forEach() to be used to trigger a side effect but without terminating processing.</p>

<p>I suspect I could do this with something like .map(item -> f(item)) where the method f performs the side effect and returns the item to the stream, but it seems a tad hokey.</p>

<p>Is there a standard way of handling this?</p>
