public static < S , T > T findResult ( S [ ] self , @ ClosureParams ( FirstParam . Component . class ) Closure < T > condition ) { return findResult ( new ArrayIterator < S > ( self ) , condition ) ; }
Iterates through the Array calling the given closure condition for each item but stopping once the first non - null result is found and returning that result . If all results are null null is returned .