gather a sequence of streams into a single stream