Streams2 (Stream.Transform) reimplementation of dominictarr's ridiculously popular through module