Try updating this to just take a `Function2<Integer, java.util.Iterator<A>, java.util.Iterator<B>>`. I'm pretty sure it would work and we won't need a new type of class.