Rewrite #merge to apply to a stream of streams