public static < T > Iterator < T > tail ( Iterator < T > self ) { if ( ! self . hasNext ( ) ) { throw new NoSuchElementException ( "Cannot access tail() for an empty Iterator" ) ; } self . next ( ) ; return self ; }
Returns the original iterator after throwing away the first element .