public static < E > void pipe ( Iterator < E > iterator , OutputIterator < E > outputIterator ) { new ConsumeIntoOutputIterator <> ( outputIterator ) . apply ( iterator ) ; }
Consumes the input iterator to the output iterator .