public static < T > int findIndexOf ( Iterator < T > self , @ ClosureParams ( FirstParam . FirstGenericType . class ) Closure condition ) { return findIndexOf ( self , 0 , condition ) ; }
Iterates over the elements of an Iterator and returns the index of the first item that satisfies the condition specified by the closure .