public static < I , O > Iterable < O > map ( Iterable < I > it , Processor < I , O > processor ) { return new ProcessingIterable < I , O > ( it . iterator ( ) , processor ) ; }
Implement a map operation that applies a processor to each element in the wrapped iterator and iterates over the resulting output .